SWDEV-348678 - hipManagedVar to initialize on all devices

Change-Id: Id714b56e89e4930ee067f3a7472a0029057d2711
Этот коммит содержится в:
Ajay
2022-08-04 00:14:55 +00:00
родитель d12f205fd1
Коммит b380a95597
4 изменённых файлов: 17 добавлений и 9 удалений
+4 -1
Просмотреть файл
@@ -343,7 +343,10 @@ hipError_t ihipModuleLaunchKernel(hipFunction_t f, uint32_t globalWorkSizeX,
startEvent, stopEvent, flags, params);
int deviceId = hip::Stream::DeviceId(hStream);
HIP_RETURN_ONFAIL(PlatformState::instance().initStatManagedVarDevicePtr(deviceId));
for (size_t dev = 0; dev < g_devices.size(); ++dev) {
HIP_RETURN_ONFAIL(PlatformState::instance().initStatManagedVarDevicePtr(dev));
}
if (f == nullptr) {
LogPrintfError("%s", "Function passed is null");
return hipErrorInvalidImage;