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

Display info about device used (replaying dcf5e08e)

parent ca8932cf
No related branches found
No related tags found
No related merge requests found
......@@ -754,6 +754,14 @@ int main (int argc, char * const argv[]) {
if(available)
{
device_id = device_ids[i];
char name[200];
err = clGetDeviceInfo(device_ids[i], CL_DEVICE_NAME, sizeof(name), name, NULL);
if(err == CL_SUCCESS) {
printf("INFO: Using device %s...\n", name);
}
else {
printf("INFO: Using device # %d...\n", i);
}
break;
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment