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:
German Andryeyev
2022-02-07 17:34:39 -05:00
parent bd96ef9a34
commit 0bfb898038
2 changed files with 2 additions and 4 deletions
@@ -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
+1 -3
View File
@@ -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");
}