Commit 47d231be authored by Oliver Bock's avatar Oliver Bock
Browse files

Display info about device used (replaying dcf5e08e)

parent ca8932cf
......@@ -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
......
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