Skip to content

Commit

Permalink
OpenCL: Un-dead the old Apple and VCL fallback code
Browse files Browse the repository at this point in the history
  • Loading branch information
solardiz committed Jan 2, 2024
1 parent 8da5067 commit 6a5c5d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/opencl_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -2535,7 +2535,7 @@ void get_compute_capability(int sequential_id, unsigned int *major,
CL_DEVICE_COMPUTE_CAPABILITY_MINOR_NV,
sizeof(cl_uint), minor, NULL);

if (!major) {
if (!*major) {
/*
* Apple, VCL and some other environments don't expose CL_DEVICE_COMPUTE_CAPABILITY_MINOR_NV
* so we need this crap - which is incomplete, best effort matching.
Expand Down

0 comments on commit 6a5c5d9

Please sign in to comment.