From 1ca7e3c22fdd52dab9205e9faec947505f5eefec Mon Sep 17 00:00:00 2001 From: Satyanvesh Dittakavi Date: Thu, 15 Feb 2024 09:44:42 +0000 Subject: [PATCH] SWDEV-444021 - Implement hipGetFuncBySymbol Change-Id: Ic82715135d0f901ada9b97a86afe0e4c2221a4e9 --- include/hip/hip_runtime_api.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/hip/hip_runtime_api.h b/include/hip/hip_runtime_api.h index 6d936a40cf..2afbf5fecd 100644 --- a/include/hip/hip_runtime_api.h +++ b/include/hip/hip_runtime_api.h @@ -5338,6 +5338,16 @@ hipError_t hipFuncGetAttributes(struct hipFuncAttributes* attr, const void* func * @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidDeviceFunction */ hipError_t hipFuncGetAttribute(int* value, hipFunction_attribute attrib, hipFunction_t hfunc); +/** + * @brief Gets pointer to device entry function that matches entry function symbolPtr. + * + * @param [out] functionPtr Device entry function + * @param [in] symbolPtr Pointer to device entry function to search for + * + * @returns #hipSuccess, #hipErrorInvalidDeviceFunction + * + */ +hipError_t hipGetFuncBySymbol(hipFunction_t* functionPtr, const void* symbolPtr); /** * @brief returns the handle of the texture reference with the name from the module. *