From c1d63fbdbba7f760eaa471eec80a13af68c1b877 Mon Sep 17 00:00:00 2001
From: foreman
Date: Fri, 6 Dec 2019 00:33:55 -0500
Subject: [PATCH] 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
---
api/hip/hip_platform.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/api/hip/hip_platform.cpp b/api/hip/hip_platform.cpp
index 37d022faa9..0250ebfb09 100644
--- a/api/hip/hip_platform.cpp
+++ b/api/hip/hip_platform.cpp
@@ -416,9 +416,9 @@ extern "C" void __hipRegisterFunction(
HIP_INIT();
PlatformState::DeviceFunction func{ std::string{deviceName}, modules, std::vector{ 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.