I download CUDA toolkit and I have Visual Studio Community 2019
the Setting up Visual Studio is
- For Additional Include Directories , point to include folder inside your CUDA toolkit installation folder (C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include)
- Linker > Input and add OpenCL.lib to Additional dependencies.
- Linker > General option page, add environmental variable $(CUDA_LIB_PATH) for Additional Library Directories
I have this error
Error E1696 – cannot open source file “CL/cl.h”