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

[Documentation Fix] Building mkl_interface example is failing as it can't find example_helper.hpp #1

Open
sreerajkksd opened this issue Sep 23, 2024 · 0 comments
Assignees

Comments

@sreerajkksd
Copy link

Building the C++ example in https://github.com/IntelPython/example-portable-data-parallel-extensions/blob/main/steps/mkl_interface/building.md#building-a-c-example-that-uses-the-library fails with

> icpx -fsycl getrs_usm.cpp -fsycl-targets=nvptx64-nvidia-cuda,spir64-unknown-unknown -I${MKL_INTERFACE_ROOT}/include -L${MKL_INTERFACE_ROOT}/lib -lonemkl -Wl,-rpath,${MKL_INTERFACE_ROOT}/lib -o run -I -I${MKL_INTERFACE_ROOT}/../examples/include
getrs_usm.cpp:48:10: fatal error: 'example_helper.hpp' file not found
   48 | #include "example_helper.hpp"
      |          ^~~~~~~~~~~~~~~~~~~~
1 error generated.

I added -I${MKL_INTERFACE_ROOT}/../examples/include to the icpx command and that seems to have worked.

@ndgrigorian ndgrigorian self-assigned this Dec 19, 2024
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