P4 to Git Change 1989089 by kjayapra@0_HIPWS_P2P_ROCM on 2019/08/26 14:24:21
SWDEV-198194 - Delete vars at __hipUnregisterFatBinary. Affected files ... ... //depot/stg/opencl/drivers/opencl/api/hip/hip_internal.hpp#39 edit ... //depot/stg/opencl/drivers/opencl/api/hip/hip_module.cpp#38 edit ... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#40 edit
This commit is contained in:
@@ -71,7 +71,11 @@ hipError_t hipModuleLoad(hipModule_t* module, const char* fname)
|
||||
}
|
||||
|
||||
bool ihipModuleUnregisterGlobal(hipModule_t hmod) {
|
||||
PlatformState::instance().unregisterVar(hmod);
|
||||
std::vector< std::pair<hipModule_t, bool> >* modules =
|
||||
PlatformState::instance().unregisterVar(hmod);
|
||||
if (modules != nullptr) {
|
||||
delete modules;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user