SWDEV-383839 - fix oclperf test failures on MI300
Change-Id: I789dad08f875d16eeb4d60dc60379d4ee4158904
This commit is contained in:
@@ -134,7 +134,7 @@ void OCLPerfImageSampleRate::open(unsigned int test, char *units,
|
||||
conversion = 1.0f;
|
||||
_deviceId = deviceId;
|
||||
_openTest = test;
|
||||
|
||||
skip_ = false;
|
||||
context_ = 0;
|
||||
cmd_queue_ = 0;
|
||||
program_ = 0;
|
||||
@@ -176,7 +176,15 @@ void OCLPerfImageSampleRate::open(unsigned int test, char *units,
|
||||
|
||||
CHECK_RESULT(_deviceId >= num_devices, "Requested deviceID not available");
|
||||
device = devices[_deviceId];
|
||||
|
||||
size_t size;
|
||||
bool imageSupport_ = false;
|
||||
error_ = _wrapper->clGetDeviceInfo(device, CL_DEVICE_IMAGE_SUPPORT,
|
||||
sizeof(imageSupport_), &imageSupport_, &size);
|
||||
if (!imageSupport_) {
|
||||
printf("\n%s\n", "Image not supported, skipping this test!");
|
||||
skip_ = true;
|
||||
return;
|
||||
}
|
||||
context_ = _wrapper->clCreateContext(NULL, 1, &device, notify_callback, NULL,
|
||||
&error_);
|
||||
CHECK_RESULT(context_ == 0, "clCreateContext failed");
|
||||
@@ -247,6 +255,9 @@ void OCLPerfImageSampleRate::open(unsigned int test, char *units,
|
||||
}
|
||||
|
||||
void OCLPerfImageSampleRate::run(void) {
|
||||
if (skip_) {
|
||||
return;
|
||||
}
|
||||
int global = outBufSize_ / typeSizes[typeIdx_];
|
||||
int local = 64;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user