SWDEV-356314 - Init managed vars on device kernel is launched
Change-Id: I9c30b7d0e2a490dbb2bd9c02dccaae17d76874ef
[ROCm/clr commit: 0a3e89c0cb]
이 커밋은 다음에 포함됨:
1 부모
6ec1955d2c
커밋
3d97da8522
1 파일이 변경됨
+1
-3
@@ -339,9 +339,7 @@ hipError_t ihipModuleLaunchKernel(hipFunction_t f, uint32_t globalWorkSizeX,
|
||||
uint32_t numGrids = 0, uint64_t prevGridSum = 0,
|
||||
uint64_t allGridSum = 0, uint32_t firstDevice = 0) {
|
||||
int deviceId = hip::Stream::DeviceId(hStream);
|
||||
for (size_t dev = 0; dev < g_devices.size(); ++dev) {
|
||||
HIP_RETURN_ONFAIL(PlatformState::instance().initStatManagedVarDevicePtr(dev));
|
||||
}
|
||||
HIP_RETURN_ONFAIL(PlatformState::instance().initStatManagedVarDevicePtr(deviceId));
|
||||
|
||||
if (f == nullptr) {
|
||||
LogPrintfError("%s", "Function passed is null");
|
||||
|
||||
새 이슈에서 참조
사용자 차단