Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

g++ appears to resolve OpenCL/cl.h header but clang does not. #868

Open
teamiceberg opened this issue Sep 8, 2021 · 0 comments
Open

g++ appears to resolve OpenCL/cl.h header but clang does not. #868

teamiceberg opened this issue Sep 8, 2021 · 0 comments

Comments

@teamiceberg
Copy link

The compile output of the two files on a simple boost.compute example program (compute/example/list_devices.cpp) on Mac OSX 11.5.2 is listed below:

[files also have the elapsed times of the various compiler and linker stages]

gpp_compile.txt
clang_compile.txt

As you can see the clang compiler appears to have produced a fatal error:

"In file included from /Users/shivamacpro/Desktop/EducationandProjects/boost-compute-library/compute/include/boost/compute/config.hpp:16:
/Users/shivamacpro/Desktop/EducationandProjects/boost-compute-library/compute/include/boost/compute/cl.hpp:17:10: fatal error: 'OpenCL/cl.h' file not found
#include <OpenCL/cl.h>"

The output of list_devices on my Macbook pro when successfully compiled under g++ is:

Platform 'Apple' CPU Device: Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz
GPU Device: Intel(R) HD Graphics 630
GPU Device: AMD Radeon Pro 560 Compute Engine

Any idea what might be happening here? Or if this is a bug, should we work toward fixing it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant