SWDEV-439637 - Fix undefined symbol error(github id- #3382)

Change-Id: Ic7812e21618f48c737ce2c51b22a153099cc5d66
This commit is contained in:
Anusha GodavarthySurya
2024-01-03 15:06:54 +00:00
committed by Maneesh Gupta
parent aacdb00759
commit 242132caa7
5 changed files with 7 additions and 2 deletions
@@ -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;
};
-1
View File
@@ -427,7 +427,6 @@ hipMemcpy2DAsync_spt
hipMemcpyFromSymbolAsync_spt
hipMemcpyToSymbolAsync_spt
hipMemcpyFromArray_spt
hipMemcpy2DToArray_spt
hipMemcpy2DFromArrayAsync_spt
hipMemcpy2DToArrayAsync_spt
hipDrvGetErrorName
+2
View File
@@ -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
-1
View File
@@ -486,7 +486,6 @@ global:
hipMemcpyFromSymbolAsync_spt;
hipMemcpyToSymbolAsync_spt;
hipMemcpyFromArray_spt;
hipMemcpy2DToArray_spt;
hipMemcpy2DFromArrayAsync_spt;
hipMemcpy2DToArrayAsync_spt;
hipDrvGetErrorName;
+3
View File
@@ -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();
}