Skip to content

Commit 6710220

Browse files
author
abergeron
authored
Merge pull request #550 from notoraptor/fix-opencl-device-detection
Fix device number formatting for OpenCL.
2 parents 65f34a1 + 6d8c5db commit 6710220

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gpuarray_buffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ int gpucontext_props_cuda_dev(gpucontext_props *p, int devno) {
5656
}
5757

5858
int gpucontext_props_opencl_dev(gpucontext_props *p, int platno, int devno) {
59-
p->dev = platno << 16 || devno;
59+
p->dev = (platno << 16) | devno;
6060
return GA_NO_ERROR;
6161
}
6262

0 commit comments

Comments
 (0)