Galarius/vscode-opencl

OpenCL 2.0 Features Not Recognized

seansiddens opened this issue · 2 comments

image

Many OpenCL 2.0 features are marked with red squiggles and are don't appear to be recognized. Is there a way to disable this?

Hi @seansiddens! You can disable OpenCL diagnostics by setting the OpenCL.server.enable option to false (VS Code restart is required). However, if one of your OpenCL devices supports OpenCL 2.0, I recommend you to select the compatible device using the OpenCL: Select command or the corresponding action in the "Explorer: OpenCL Devices" view. Subsequently, set -cl-std=CL2.0 in the OpenCL.server.buildOptions setting. This will keep diagnostics enabled while supporting OpenCL 2.0 features.

Thanks! Setting the build option seems to have worked 👍