From 248840bd54bc47b96bdbf9c7983997a70cec037d Mon Sep 17 00:00:00 2001 From: foreman Date: Tue, 1 Nov 2016 20:05:34 -0400 Subject: [PATCH] P4 to Git Change 1335043 by lmoriche@lmoriche_opencl_dev on 2016/11/01 19:59:01 SWDEV-94611 - [OCL-LC-ROCm] Add "HSAIL" or "LC" to the driver version string to tell which stack is used. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#24 edit --- rocclr/runtime/device/rocm/rocdevice.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rocclr/runtime/device/rocm/rocdevice.cpp b/rocclr/runtime/device/rocm/rocdevice.cpp index 5109e3fbc7..208c63d22a 100644 --- a/rocclr/runtime/device/rocm/rocdevice.cpp +++ b/rocclr/runtime/device/rocm/rocdevice.cpp @@ -835,7 +835,8 @@ Device::populateOCLDeviceConstants() return false; } std::stringstream ss; - ss << major << "." << minor << " (HSA)"; + ss << major << "." << minor << " (HSA," IF(IS_LIGHTNING,"LC","HSAIL") ")"; + strcpy(info_.driverVersion_, ss.str().c_str()); info_.version_ = "OpenCL " /*OPENCL_VERSION_STR*/"1.2" " ";