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

Fixed device selection while debugging

parent 83e69711
Branches
Tags
No related merge requests found
...@@ -824,7 +824,7 @@ int main (int argc, char * const argv[]) { ...@@ -824,7 +824,7 @@ int main (int argc, char * const argv[]) {
device_id = NULL; device_id = NULL;
unsigned int i = 0; unsigned int i = 0;
if (argc == 3) { if (argc >= 3) {
cl_bool available; cl_bool available;
err = clGetDeviceInfo(device_ids[atoi(argv[2])], CL_DEVICE_AVAILABLE, sizeof(cl_bool), &available, NULL); err = clGetDeviceInfo(device_ids[atoi(argv[2])], CL_DEVICE_AVAILABLE, sizeof(cl_bool), &available, NULL);
if(err) { if(err) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment