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

Display info about device used

parent 4f69c90a
No related branches found
No related tags found
No related merge requests found
......@@ -383,6 +383,17 @@ 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