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

Show number of available devices

parent 8700469d
...@@ -826,12 +826,14 @@ int main (int argc, char * const argv[]) { ...@@ -826,12 +826,14 @@ int main (int argc, char * const argv[]) {
} }
err = clGetDeviceIDs(platform, device_type, MAX_DEVICES, device_ids, &num_devices); err = clGetDeviceIDs(platform, device_type, MAX_DEVICES, device_ids, &num_devices);
if(err) if(err) {
{
printf("ERROR: clGetDeviceIDs failed with error: %d\n", err); printf("ERROR: clGetDeviceIDs failed with error: %d\n", err);
test_finish(); test_finish();
return -1; return -1;
} }
else {
printf("INFO: Found %d suitable device(s)...\n", num_devices);
}
device_id = NULL; device_id = NULL;
unsigned int i = 0; unsigned int i = 0;
......
Markdown is supported
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