From 242132caa7dc4db0b0fb41a10b3cc2b8dc985d28 Mon Sep 17 00:00:00 2001 From: Anusha GodavarthySurya Date: Wed, 3 Jan 2024 15:06:54 +0000 Subject: [PATCH] SWDEV-439637 - Fix undefined symbol error(github id- #3382) Change-Id: Ic7812e21618f48c737ce2c51b22a153099cc5d66 --- hipamd/include/hip/amd_detail/hip_api_trace.hpp | 2 ++ hipamd/src/amdhip.def | 1 - hipamd/src/hip_api_trace.cpp | 2 ++ hipamd/src/hip_hcc.map.in | 1 - hipamd/src/hip_table_interface.cpp | 3 +++ 5 files changed, 7 insertions(+), 2 deletions(-) diff --git a/hipamd/include/hip/amd_detail/hip_api_trace.hpp b/hipamd/include/hip/amd_detail/hip_api_trace.hpp index 7bae717bf5..21f37258da 100644 --- a/hipamd/include/hip/amd_detail/hip_api_trace.hpp +++ b/hipamd/include/hip/amd_detail/hip_api_trace.hpp @@ -936,6 +936,7 @@ typedef hipError_t (*t_hipGraphExecExternalSemaphoresWaitNodeSetParams)(hipGraph typedef hipError_t (*t_hipGraphAddNode)(hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, hipGraphNodeParams *nodeParams); +typedef hipError_t (*t_hipExtGetLastError)(); // HIP Compiler dispatch table struct HipCompilerDispatchTable { @@ -1396,4 +1397,5 @@ struct HipDispatchTable { t_hipGraphExecExternalSemaphoresSignalNodeSetParams hipGraphExecExternalSemaphoresSignalNodeSetParams_fn; t_hipGraphExecExternalSemaphoresWaitNodeSetParams hipGraphExecExternalSemaphoresWaitNodeSetParams_fn; t_hipGraphAddNode hipGraphAddNode_fn; + t_hipExtGetLastError hipExtGetLastError_fn; }; diff --git a/hipamd/src/amdhip.def b/hipamd/src/amdhip.def index 2133815d86..f7ac5df298 100644 --- a/hipamd/src/amdhip.def +++ b/hipamd/src/amdhip.def @@ -427,7 +427,6 @@ hipMemcpy2DAsync_spt hipMemcpyFromSymbolAsync_spt hipMemcpyToSymbolAsync_spt hipMemcpyFromArray_spt -hipMemcpy2DToArray_spt hipMemcpy2DFromArrayAsync_spt hipMemcpy2DToArrayAsync_spt hipDrvGetErrorName diff --git a/hipamd/src/hip_api_trace.cpp b/hipamd/src/hip_api_trace.cpp index 919e148f4e..c06682fbdd 100644 --- a/hipamd/src/hip_api_trace.cpp +++ b/hipamd/src/hip_api_trace.cpp @@ -756,6 +756,7 @@ hipError_t hipGraphExternalSemaphoresWaitNodeSetParams( hipGraphNode_t hNode, const hipExternalSemaphoreWaitNodeParams* nodeParams); hipError_t hipModuleLaunchCooperativeKernelMultiDevice(hipFunctionLaunchParams* launchParamsList, unsigned int numDevices, unsigned int flags); +hipError_t hipExtGetLastError(); } // namespace hip namespace hip { @@ -1225,6 +1226,7 @@ void UpdateDispatchTable(HipDispatchTable* ptrDispatchTable) { ptrDispatchTable->hipGetStreamDeviceId_fn = hip::hipGetStreamDeviceId; ptrDispatchTable->hipDrvGraphAddMemsetNode_fn = hip::hipDrvGraphAddMemsetNode; ptrDispatchTable->hipGetDevicePropertiesR0000_fn = hip::hipGetDevicePropertiesR0000; + ptrDispatchTable->hipExtGetLastError_fn = hip::hipExtGetLastError; } #if HIP_ROCPROFILER_REGISTER > 0 diff --git a/hipamd/src/hip_hcc.map.in b/hipamd/src/hip_hcc.map.in index b8f0b3da64..fc7d91e8bc 100644 --- a/hipamd/src/hip_hcc.map.in +++ b/hipamd/src/hip_hcc.map.in @@ -486,7 +486,6 @@ global: hipMemcpyFromSymbolAsync_spt; hipMemcpyToSymbolAsync_spt; hipMemcpyFromArray_spt; - hipMemcpy2DToArray_spt; hipMemcpy2DFromArrayAsync_spt; hipMemcpy2DToArrayAsync_spt; hipDrvGetErrorName; diff --git a/hipamd/src/hip_table_interface.cpp b/hipamd/src/hip_table_interface.cpp index 8324e42371..81d681949e 100644 --- a/hipamd/src/hip_table_interface.cpp +++ b/hipamd/src/hip_table_interface.cpp @@ -1711,3 +1711,6 @@ hipError_t hipLaunchHostFunc_spt(hipStream_t stream, hipHostFn_t fn, void* userD extern "C" int hipGetStreamDeviceId(hipStream_t stream) { return hip::GetHipDispatchTable()->hipGetStreamDeviceId_fn(stream); } +hipError_t hipExtGetLastError() { + return hip::GetHipDispatchTable()->hipExtGetLastError_fn(); +}