From bd269026e4235e4950bb36448c15b4ba9232efab Mon Sep 17 00:00:00 2001
From: foreman
Date: Mon, 4 Feb 2019 17:48:08 -0500
Subject: [PATCH] P4 to Git Change 1739728 by jatang@jatang_win_pal_lc on
2019/02/04 16:58:16
SWDEV-178313 - Properly enable OpenCL 2.0 on ROCm/LC path for Vega10+.
OPENCL_VERSION_STR is 2.1, but we only enable 2.0 since we don't have compiler's support for 2.1.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#115 edit
---
rocclr/runtime/device/rocm/rocdevice.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rocclr/runtime/device/rocm/rocdevice.cpp b/rocclr/runtime/device/rocm/rocdevice.cpp
index 10735e02f1..422451206d 100644
--- a/rocclr/runtime/device/rocm/rocdevice.cpp
+++ b/rocclr/runtime/device/rocm/rocdevice.cpp
@@ -1078,7 +1078,7 @@ bool Device::populateOCLDeviceConstants() {
// Enable OpenCL 2.0 for Vega10+
if (deviceInfo_.gfxipVersion_ >= 900) {
- info_.version_ = "OpenCL " OPENCL_VERSION_STR " ";
+ info_.version_ = "OpenCL " /*OPENCL_VERSION_STR*/"2.0" " ";
} else {
info_.version_ = "OpenCL " /*OPENCL_VERSION_STR*/"1.2" " ";
}