mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix code format errors vs.2
This commit is contained in:
committed by
Alastair Murray
parent
44a240367e
commit
450f583800
@@ -280,11 +280,12 @@ const int test_num = ARRAY_SIZE( test_list );
|
||||
test_status InitCL(cl_device_id device) {
|
||||
auto version = get_device_cl_version(device);
|
||||
auto expected_min_version = Version(2, 0);
|
||||
if (version < expected_min_version) {
|
||||
if (version < expected_min_version)
|
||||
{
|
||||
version_expected_info("Test", "OpenCL",
|
||||
expected_min_version.to_string().c_str(),
|
||||
version.to_string().c_str());
|
||||
return TEST_SKIP;
|
||||
return TEST_SKIP;
|
||||
}
|
||||
|
||||
int error;
|
||||
|
||||
@@ -31,11 +31,12 @@ int gWimpyMode = 0;
|
||||
test_status InitCL(cl_device_id device) {
|
||||
auto version = get_device_cl_version(device);
|
||||
auto expected_min_version = Version(2, 0);
|
||||
if (version < expected_min_version) {
|
||||
if (version < expected_min_version)
|
||||
{
|
||||
version_expected_info("Test", "OpenCL",
|
||||
expected_min_version.to_string().c_str(),
|
||||
version.to_string().c_str());
|
||||
return TEST_SKIP;
|
||||
return TEST_SKIP;
|
||||
}
|
||||
|
||||
int error;
|
||||
|
||||
@@ -38,12 +38,12 @@ test_status InitCL(cl_device_id device) {
|
||||
cl_int error;
|
||||
|
||||
if (version < expected_min_version)
|
||||
{
|
||||
{
|
||||
version_expected_info("Test", "OpenCL",
|
||||
expected_min_version.to_string().c_str(),
|
||||
version.to_string().c_str());
|
||||
return TEST_SKIP;
|
||||
}
|
||||
return TEST_SKIP;
|
||||
}
|
||||
|
||||
error = clGetDeviceInfo(device, CL_DEVICE_PLATFORM,
|
||||
sizeof(platform), &platform, NULL);
|
||||
|
||||
@@ -816,10 +816,10 @@ int main (int argc, const char * argv[])
|
||||
free_mtdata(gMTdata);
|
||||
free(gTestNames);
|
||||
|
||||
if (gQueue) {
|
||||
if (gQueue)
|
||||
{
|
||||
int error_code = clFinish(gQueue);
|
||||
if (error_code)
|
||||
vlog_error("clFinish failed:%d\n", error_code);
|
||||
if (error_code) vlog_error("clFinish failed:%d\n", error_code);
|
||||
}
|
||||
|
||||
ReleaseCL();
|
||||
|
||||
@@ -23,11 +23,12 @@
|
||||
test_status InitCL(cl_device_id device) {
|
||||
auto version = get_device_cl_version(device);
|
||||
auto expected_min_version = Version(2, 0);
|
||||
if (version < expected_min_version) {
|
||||
if (version < expected_min_version)
|
||||
{
|
||||
version_expected_info("Test", "OpenCL",
|
||||
expected_min_version.to_string().c_str(),
|
||||
version.to_string().c_str());
|
||||
return TEST_SKIP;
|
||||
return TEST_SKIP;
|
||||
}
|
||||
|
||||
int error;
|
||||
|
||||
Reference in New Issue
Block a user