KhronosGroup / KhronosGroup/OpenCL-SDK
Getting "cannot open source file "CL/cl.h" after the SDK installation
- Dominant language
- C++
- Stars
- 777
- Forks
- 163
- Avg merge
- 6d 17h
- Merged PRs (30d)
- 2
Description
I've installed this SDK on a Windows 11 x64 machine- well, actually, I'm not that good with CMake and stuff, but these two commands were executed successfully:
```bat
cmake -A x64 -B ./OpenCL-SDK/build -S ./OpenCL-SDK
cmake --build ./OpenCL-SDK/build --target install
```
However, I'm still getting the `cannot open source file "CL/cl.h"` error in Visual Studio Community 2022 for
```cpp
#ifdef __APPLE__
#include
#else
#include
#endif
```
I appreciate any help with my issue, and thank you in advance.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the CMake configure and install commands shown in the issue, then inspect how the resulting OpenCL-SDK installation is exposed to Visual Studio Community 2022. Verify whether the CL/cl.h header can be found for the shown include and determine what configuration is needed for the source to compile successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100