SWDEV-255979 - Added support of __managed__ static variable

Change-Id: I9d5cbbecc8c19ec38a95c94ab4130465ba76c102


[ROCm/hip commit: 995e6336c6]
This commit is contained in:
agodavar
2021-02-16 07:20:58 -05:00
committed by Anusha Godavarthy Surya
parent db0c3fdaaf
commit 39c608e98d
11 changed files with 202 additions and 16 deletions
+2
View File
@@ -222,6 +222,8 @@ hipError_t ihipModuleLaunchKernel(hipFunction_t f, uint32_t globalWorkSizeX,
blockDimX, blockDimY, blockDimZ, sharedMemBytes, hStream, kernelParams, extra, startEvent,
stopEvent, flags, params);
HIP_RETURN_ONFAIL(PlatformState::instance().initStatManagedVarDevicePtr(ihipGetDevice()));
if (f == nullptr) {
DevLogPrintfError("%s", "Function passed is null");
return hipErrorInvalidImage;