From 3f194bea645f97a53106378c28fae5ca2d2bca6e Mon Sep 17 00:00:00 2001
From: foreman
Date: Tue, 25 Oct 2016 16:26:18 -0400
Subject: [PATCH] P4 to Git Change 1331529 by lmoriche@lmoriche_opencl_dev on
2016/10/25 16:13:34
SWDEV-105876 - [ROCm CQE][OCLonLC][QR] OCL 2.0 conformance test "SVM" fails due to CL#1329608
- Disable CL_DEVICE_SVM_ATOMICS on ROCm/dGPU.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#22 edit
---
rocclr/runtime/device/rocm/rocdevice.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/rocclr/runtime/device/rocm/rocdevice.cpp b/rocclr/runtime/device/rocm/rocdevice.cpp
index 4a9b9cb649..50f3d60ff4 100644
--- a/rocclr/runtime/device/rocm/rocdevice.cpp
+++ b/rocclr/runtime/device/rocm/rocdevice.cpp
@@ -964,10 +964,12 @@ Device::populateOCLDeviceConstants()
if (agent_profile_ == HSA_PROFILE_FULL) {
info_.svmCapabilities_ |= CL_DEVICE_SVM_FINE_GRAIN_SYSTEM;
}
+#if !defined(WITH_LIGHTNING_COMPILER)
// Report atomics capability based on GFX IP, control on Hawaii
if (info_.hostUnifiedMemory_ || deviceInfo_.gfxipVersion_ >= 800) {
info_.svmCapabilities_ |= CL_DEVICE_SVM_ATOMICS;
}
+#endif // !defined(WITH_LIGHTNING_COMPILER)
}
if (HSA_STATUS_SUCCESS !=