From cf9c9204df12335cfbda75891c04ed3a16d2bb6c Mon Sep 17 00:00:00 2001
From: foreman
Date: Mon, 7 Dec 2015 11:53:23 -0500
Subject: [PATCH] P4 to Git Change 1218185 by smekhano@stas-rampitec-hsa on
2015/12/07 11:46:59
SWDEV-83242 - RT: disable ADL reload in app detect
Reload is disabled in ADL with the change list 1198904 and ticket
SWDEV-59442 - The ADL_ApplicationProfiles_System_Reload Function is not Re-entrant.
Returned value of the call is ADL_ERR_NOT_SUPPORTED on Windows.
Thus appprofiles do not currently work with the OpenCL.
This change removes reload call result check and profiles work again.
Testing: smoke, precheckin, use of customized app profile
Reviewed by German Andreev
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/appprofile.cpp#11 edit
[ROCm/clr commit: 86fe69e9ef7f924b8e6bdb65c507c1a491f3e761]
---
projects/clr/rocclr/runtime/device/appprofile.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/projects/clr/rocclr/runtime/device/appprofile.cpp b/projects/clr/rocclr/runtime/device/appprofile.cpp
index 53b94ffbbf..e2a962c661 100644
--- a/projects/clr/rocclr/runtime/device/appprofile.cpp
+++ b/projects/clr/rocclr/runtime/device/appprofile.cpp
@@ -78,10 +78,10 @@ bool ADL::init()
}
}
- result = adl2ApplicationProfilesSystemReload(adlContext_);
- if (result != ADL_OK) {
- return false;
- }
+ // Reload is disabled in ADL with the change list 1198904 and ticket
+ // SWDEV-59442 - The ADL_ApplicationProfiles_System_Reload Function is not Re-entrant
+ // Returned value is ADL_ERR_NOT_SUPPORTED on Windows.
+ adl2ApplicationProfilesSystemReload(adlContext_);
return true;
}