SWDEV-447973 - Support generic targets

Change-Id: I32db83843e45e0f013591493aafd7a532c881e16
This commit is contained in:
taosang2
2024-03-08 13:31:08 -05:00
committed by Tao Sang
parent b75b0d9a53
commit f1f4f40c5b
8 changed files with 303 additions and 49 deletions
@@ -137,6 +137,9 @@ void OCLOfflineCompilation::open(unsigned int test, char* units,
char strVersion[128];
_wrapper->clGetDeviceInfo(devices[i], CL_DEVICE_NAME, sizeof(name), name,
NULL);
if (strstr(name, "-generic") != NULL) {
continue; // Skip generic target because it needs code object version 6
}
error_ = _wrapper->clGetDeviceInfo(devices[i], CL_DEVICE_VERSION,
sizeof(strVersion), strVersion, 0);
CHECK_RESULT(error_ != CL_SUCCESS, "clGetDeviceInfo failed");