Commit d68a2d73 authored by Oliver Bock's avatar Oliver Bock
Browse files

Added some status output for platforms without validation feature

parent 17529e19
......@@ -805,7 +805,7 @@ int main (int argc, char * const argv[]) {
err = clGetDeviceInfo(device_ids[atoi(argv[2])], CL_DEVICE_AVAILABLE, sizeof(cl_bool), &available, NULL);
if(err) {
printf("ERROR: Cannot check device availability of device # %d\n", atoi(argv[2]));
return -1;
return -1;
if(available) {
......@@ -982,5 +982,10 @@ int main (int argc, char * const argv[]) {
#ifndef __APPLE___
printf("Test finished (validation only available on Mac OS X)! Total number of errors: %d\n", total_errors);
return total_errors;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment