2
0

SWDEV-383839 - fix oclperf test failures on MI300

Change-Id: I789dad08f875d16eeb4d60dc60379d4ee4158904


[ROCm/clr commit: effb58e076]
Este cometimento está contido em:
Julia Jiang
2023-02-23 18:29:36 -05:00
ascendente 562a086ff1
cometimento c8b989d288
19 ficheiros modificados com 159 adições e 19 eliminações
@@ -123,7 +123,15 @@ void OCLPerfImageReadWrite::open(unsigned int test, char *units,
return;
}
delete strVersion;
size_t size;
bool imageSupport_ = false;
error_ = _wrapper->clGetDeviceInfo(devices_[_deviceId], CL_DEVICE_IMAGE_SUPPORT,
sizeof(imageSupport_), &imageSupport_, &size);
if (!imageSupport_) {
printf("\n%s\n", "Image not supported, skipping this test!");
skip_ = true;
return;
}
bufSize_ = Sizes[test % NUM_SIZES];
bufnum_ = (test / NUM_SIZES) % NUM_FORMATS;
memSize = bufSize_ * bufSize_ * formatSize[bufnum_];