SWDEV-333073 - HIP_INIT_API to handle no return case

Change-Id: I78d43e88cc196047a4cb5d6fcf756339c0e46e80
This commit is contained in:
Sarbojit Sarkar
2022-06-22 11:22:24 +00:00
committed by Sarbojit Sarkar
parent c6647487e0
commit 1074b22c48
3 changed files with 76 additions and 16 deletions
-1
View File
@@ -278,7 +278,6 @@ hipError_t hipGetSymbolSize(size_t* sizePtr, const void* symbol) {
hipError_t ihipCreateGlobalVarObj(const char* name, hipModule_t hmod, amd::Memory** amd_mem_obj,
hipDeviceptr_t* dptr, size_t* bytes) {
HIP_INIT();
/* Get Device Program pointer*/
amd::Program* program = as_amd(reinterpret_cast<cl_program>(hmod));