Commit fe380e8b authored by Oliver Bock's avatar Oliver Bock
Browse files

Fixed device selection while debugging

parent 83e69711
......@@ -824,7 +824,7 @@ int main (int argc, char * const argv[]) {
device_id = NULL;
unsigned int i = 0;
if (argc == 3) {
if (argc >= 3) {
cl_bool available;
err = clGetDeviceInfo(device_ids[atoi(argv[2])], CL_DEVICE_AVAILABLE, sizeof(cl_bool), &available, NULL);
if(err) {
......
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