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

Problem in compilation stage with. computecpp 2.0.0 #45

Open
ruialves7 opened this issue Dec 26, 2021 · 3 comments
Open

Problem in compilation stage with. computecpp 2.0.0 #45

ruialves7 opened this issue Dec 26, 2021 · 3 comments

Comments

@ruialves7
Copy link

Hi,

I tried compile the sycl-bench, using the computecpp 2.0.0, gcc 9.3.0 and ubuntu error, but the cmake tool return me a error: #include<CL/sycl.hpp> not found.

cmake command: cmake .. -DSYCL_IMPL=ComputeCpp -D COMPUTECPP_RUNTIME_LIBRARY=/opt/ComputeCPP/include -DComputeCpp_INFO_EXECUTABLE=/opt/ComputeCPP -D COMPUTECPP_RUNTIME_LIBRARY_DEBUG=/opt/ComputeCPP

What could I be doing wrong?

Rui

@illuhad
Copy link
Collaborator

illuhad commented Dec 27, 2021

Hi,

I don't have experience with ComputeCpp 2.0. Does the CL/sycl.hpp header exist in your ComputeCpp install directory?

If ComputeCpp 2.0 supports already SYCL 2020, it is possible that we need to change the include to #include <sycl/sycl.hpp>, although <CL/sycl.hpp> should still be available for backwards-compatibility purposes (but is maybe not available by default?). The name of the SYCL header was changed with SYCL 2020, but SYCL-Bench still mainly targets SYCL 1.2.1.

@ruialves7
Copy link
Author

Hi,
I used this command in cmakecmake .. -D SYCL_IMPL=ComputeCpp -D ComputeCpp_INCLUDE_DIRS=/opt/ComputeCPP/include/ -DCOMPUTECPP_RUNTIME_LIBRARY=/opt/ComputeCPP/bin/ -DComputeCpp_INFO_EXECUTABLE=/opt/ComputeCPP/ -D COMPUTECPP_RUNTIME_LIBRARY_DEBUG=/opt/ComputeCPP/lib/

But after your suggestion i change the include and this fact solved my first problem, but now i have other: when i tried do a make using the cmake command above, the make command return a following error:
ompute++: error: unable to execute command: Executable "/usr/bin/spirv-ll-tool" doesn't exist!
compute++: error: spirv-ll-tool command failed with exit code 1 (use -v to see invocation)

I suspect I passed some error value in cmake flags but I'm not sure. Any suggestion?

Rui

@illuhad
Copy link
Collaborator

illuhad commented Jan 9, 2022

I'm not an expert on ComputeCpp and how it wants to be integrated with cmake - let's ask the experts from Codeplay. Pinging @rodburns as a first guess :)

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

2 participants