SWDEV-286150 - Don't report OCL2.2 support
OCL2.2 requires SPIR-V and runtime doesn't support it.
Make sure PAL backend doesn't report any SPIR-V support.
Change-Id: I8d179069674205b54f7d20d149bcb675bee5cdb0
[ROCm/clr commit: 0bf395af39]
This commit is contained in:
@@ -54,7 +54,7 @@ mark_as_advanced(AMD_OPENCL_INCLUDE_DIR)
|
||||
set(AMD_OPENCL_DEFS
|
||||
-DHAVE_CL2_HPP
|
||||
-DOPENCL_MAJOR=2
|
||||
-DOPENCL_MINOR=2
|
||||
-DOPENCL_MINOR=1
|
||||
-DOPENCL_C_MAJOR=2
|
||||
-DOPENCL_C_MINOR=0
|
||||
-DCL_TARGET_OPENCL_VERSION=220
|
||||
|
||||
@@ -499,18 +499,16 @@ void NullDevice::fillDeviceInfo(const Pal::DeviceProperties& palProp,
|
||||
settings().useLightning_ ? ",LC" : ",HSAIL", isOnline() ? "" : " [Offline]");
|
||||
|
||||
info_.profile_ = "FULL_PROFILE";
|
||||
info_.spirVersions_ = "";
|
||||
if (settings().oclVersion_ >= OpenCL20) {
|
||||
info_.version_ = "OpenCL 2.0 " AMD_PLATFORM_INFO;
|
||||
info_.oclcVersion_ = "OpenCL C 2.0 ";
|
||||
info_.spirVersions_ = "1.2";
|
||||
} else if (settings().oclVersion_ == OpenCL12) {
|
||||
info_.version_ = "OpenCL 1.2 " AMD_PLATFORM_INFO;
|
||||
info_.oclcVersion_ = "OpenCL C 1.2 ";
|
||||
info_.spirVersions_ = "1.2";
|
||||
} else {
|
||||
info_.version_ = "OpenCL 1.0 " AMD_PLATFORM_INFO;
|
||||
info_.oclcVersion_ = "OpenCL C 1.0 ";
|
||||
info_.spirVersions_ = "";
|
||||
LogError("Unknown version for support");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user