From d68a2d735d71b51b547f4b182bbf4216474072ea Mon Sep 17 00:00:00 2001 From: Oliver Bock <oliver.bock@aei.mpg.de> Date: Fri, 18 Mar 2011 12:14:53 +0100 Subject: [PATCH] Added some status output for platforms without validation feature --- example/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/example/main.cpp b/example/main.cpp index 163f5dc..af6607e 100644 --- a/example/main.cpp +++ b/example/main.cpp @@ -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[]) { clReleaseCommandQueue(queue); test_finish(); + +#ifndef __APPLE___ + printf("Test finished (validation only available on Mac OS X)! Total number of errors: %d\n", total_errors); +#endif + return total_errors; } -- GitLab