Skip to content
Snippets Groups Projects
Commit faf03ec9 authored by Oliver Bock's avatar Oliver Bock
Browse files

Show number of available devices

parent 8700469d
No related branches found
No related tags found
No related merge requests found
...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment