mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 16:29:03 +00:00
Review fixes
This commit is contained in:
committed by
Alastair Murray
parent
9e4bd21d0b
commit
514394c02f
@@ -373,19 +373,18 @@ bool TestRunner::runBuildTest(cl_device_id device, const char *folder,
|
|||||||
cl_int err;
|
cl_int err;
|
||||||
if ((err = clGetDeviceInfo(device, CL_DEVICE_SINGLE_FP_CONFIG, sizeof(gFloatCapabilities), &gFloatCapabilities, NULL)))
|
if ((err = clGetDeviceInfo(device, CL_DEVICE_SINGLE_FP_CONFIG, sizeof(gFloatCapabilities), &gFloatCapabilities, NULL)))
|
||||||
{
|
{
|
||||||
log_info("Unable to get device CL_DEVICE_SINGLE_FP_CONFIG. (%d)\n", err);
|
log_info("Unable to get device CL_DEVICE_SINGLE_FP_CONFIG. (%d)\n", err);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strstr(test_name, "div_cr") || strstr(test_name, "sqrt_cr")) {
|
if (strstr(test_name, "div_cr") || strstr(test_name, "sqrt_cr")) {
|
||||||
if ((gFloatCapabilities & CL_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT) == 0)
|
if ((gFloatCapabilities & CL_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT) == 0) {
|
||||||
{
|
(*m_successHandler)(test_name, "");
|
||||||
std::cout << "Skipped. CL_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT is not supported." << std::endl;
|
std::cout << "Skipped. (Cannot run on device due to missing CL_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT property.)" << std::endl;
|
||||||
return true;
|
return true;
|
||||||
}
|
} else {
|
||||||
else {
|
bcoptions += " -cl-fp32-correctly-rounded-divide-sqrt";
|
||||||
bcoptions += " -cl-fp32-correctly-rounded-divide-sqrt";
|
cloptions += " -cl-fp32-correctly-rounded-divide-sqrt";
|
||||||
cloptions += " -cl-fp32-correctly-rounded-divide-sqrt";
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Building the programs.
|
// Building the programs.
|
||||||
|
|||||||
Reference in New Issue
Block a user