From 403b110f0cb010e1caabe608ad3a918f1d844c0f Mon Sep 17 00:00:00 2001 From: foreman Date: Fri, 20 Oct 2017 18:30:09 -0400 Subject: [PATCH] P4 to Git Change 1473269 by lmoriche@lmoriche_opencl_dev2 on 2017/10/20 18:19:58 SWDEV-102726 - [OCL-LC-ROCm] Open source OpenCL Runtime - Initialize spirVersions_ even if we do not report the extension. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#72 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 90d393a9b4..91450b44fa 100644 --- a/rocclr/runtime/device/rocm/rocdevice.cpp +++ b/rocclr/runtime/device/rocm/rocdevice.cpp @@ -113,6 +113,7 @@ bool NullDevice::create(const AMDDeviceInfo& deviceInfo) { info_.maxWorkGroupSize_ = hsaSettings->maxWorkGroupSize_; ::strcpy(info_.vendor_, "Advanced Micro Devices, Inc."); info_.oclcVersion_ = "OpenCL C " IF(IS_LIGHTNING, OPENCL_C_VERSION_STR, "1.2") " "; + info_.spirVersions_ = ""; strcpy(info_.driverVersion_, "1.0 Provisional (hsa)"); info_.version_ = "OpenCL " OPENCL_VERSION_STR " "; return true; @@ -954,6 +955,7 @@ bool Device::populateOCLDeviceConstants() { info_.maxSamplers_ = 16; info_.bufferFromImageSupport_ = CL_FALSE; info_.oclcVersion_ = "OpenCL C " IF(IS_LIGHTNING, OPENCL_C_VERSION_STR, "1.2") " "; + info_.spirVersions_ = ""; uint16_t major, minor; if (hsa_agent_get_info(_bkendDevice, HSA_AGENT_INFO_VERSION_MAJOR, &major) !=