From 6dbc4a84c8fedafe6031aae7b98c6e99e0e108bd Mon Sep 17 00:00:00 2001
From: foreman
Date: Tue, 19 Nov 2019 13:34:00 -0500
Subject: [PATCH] P4 to Git Change 2033170 by cpaquot@cpaquot-ocl-lc-lnx on
2019/11/19 13:26:16
SWDEV-212215 - HIP-VDI runtime should not lazy load device code objects
Temporarly disable lazy load of code objects for debugger.
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#49 edit
[ROCm/clr commit: e3cee22eeb8f63551481445620a6e56119775ac0]
---
projects/clr/hipamd/api/hip/hip_platform.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/projects/clr/hipamd/api/hip/hip_platform.cpp b/projects/clr/hipamd/api/hip/hip_platform.cpp
index 0902ce1a08..1915576aa4 100644
--- a/projects/clr/hipamd/api/hip/hip_platform.cpp
+++ b/projects/clr/hipamd/api/hip/hip_platform.cpp
@@ -416,6 +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);
+ }
}
// Registers a device-side global variable.