P4 to Git Change 2041756 by cpaquot@cpaquot-ocl-lc-lnx on 2019/12/06 00:27:07

SWDEV-213526 - [hip] OOM issue
	Restore lazy kernel uploads for 2.10 release.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#54 edit
Этот коммит содержится в:
foreman
2019-12-06 00:33:55 -05:00
родитель 65fd472364
Коммит c1d63fbdbb
+3 -3
Просмотреть файл
@@ -416,9 +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);
}
// for (size_t i = 0; i < g_devices.size(); ++i) {
// PlatformState::instance().getFunc(hostFunction, i);
// }
}
// Registers a device-side global variable.