Skip to content

Commit

Permalink
Merge pull request #550 from notoraptor/fix-opencl-device-detection
Browse files Browse the repository at this point in the history
Fix device number formatting for OpenCL.
  • Loading branch information
abergeron authored Oct 13, 2017
2 parents 65f34a1 + 6d8c5db commit 6710220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpuarray_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ int gpucontext_props_cuda_dev(gpucontext_props *p, int devno) {
}

int gpucontext_props_opencl_dev(gpucontext_props *p, int platno, int devno) {
p->dev = platno << 16 || devno;
p->dev = (platno << 16) | devno;
return GA_NO_ERROR;
}

Expand Down

0 comments on commit 6710220

Please sign in to comment.