P4 to Git Change 2040867 by kjayapra@0_HIPWS_LNX1_ROCM on 2019/12/04 13:32:27

SWDEV-145570 - Adding back the lazy kernel changes because the OOM issue is because of KFD/RocR.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#53 edit
This commit is contained in:
foreman
2019-12-04 13:34:03 -05:00
orang tua 401d75de56
melakukan 94e4e87b88
+3
Melihat File
@@ -416,6 +416,9 @@ extern "C" void __hipRegisterFunction(
HIP_INIT();
PlatformState::DeviceFunction func{ std::string{deviceName}, modules, std::vector<hipFunction_t>{ g_devices.size() }};
PlatformState::instance().registerFunction(hostFunction, func);
for (size_t i = 0; i < g_devices.size(); ++i) {
PlatformState::instance().getFunc(hostFunction, i);
}
}
// Registers a device-side global variable.