cogciprocate / ocl

OpenCL for Rust
Other
731 stars 75 forks source link

Linking fails with OpenCL 1.1 #164

Closed aabizri closed 5 years ago

aabizri commented 5 years ago

It seems that, while building, ocl tries to link against clGetKernelArgInfo and clEnqueueFillBuffer which were introduced in OpenCL 1.2 and aren't there in 1.1 (see Intel OpenCL SDK version 2 for a driver supporting only 1.1). I checked, linking with a 1.2-compatible driver (such as Beignet) works on my machine.

See attached error file: error.txt

Either the Readme should be updated to indicate support starting at 1.2 or something should be done to achieve compatibility with 1.1 without removing these functions.

aabizri commented 5 years ago

This is due to the feature being activated by default, this should be documented, but I'm closing the issue as it is not a code bug.