-
Notifications
You must be signed in to change notification settings - Fork 751
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
sycl-for-cuda build/doc/run issues #1137
Comments
The same issue as reported in #1119 (@Ruyk in #1119 (comment)_) is resolved by explicitly using the CUDASelector. |
Finally, when I try and compile a larger code, I get a linker error: This symbol is not found in any of my object file being linked (even as an undefined one). Verbose clang link command (why sm_30??):
|
This looks like the application uses cbrt(double) built-in function and it seems to be unsupported by the current implementation. @Naghasan, am I right? |
Branches: We are working in integrating with upstream (the sooner we get to do that the better for everyone) so the branches are not stable. We'll have a more stable branch once we get #1091 merged. We are also working on some usage examples in codeplaysoftware/SYCL-For-CUDA-Examples#1 that may help, more to come later on. |
The link seems to be broken ? |
Just realized its still private awaiting for further internal reviews, i'll update this issue once its public |
The repo is pulic now, https://github.com/codeplaysoftware/SYCL-For-CUDA-Examples. There is only one trivial example at the moment but we will be adding more as we work in the project. |
It does - thank you! |
Quick note: please update https://github.com/codeplaysoftware/sycl-for-cuda/blob/cuda/sycl/doc/GetStartedWithSYCLCompiler.md to (1) indicate which branch should be used (still says sycl) and (2) to give a proper list of cmake flags, as currently one has to cherry-pick them from the "Build SYCL toolchain with support for NVIDIA CUDA" and the "Build SYCL toolchain/Linux" sections.
After several rounds of building the whole thing I think I managed to figure it out, but would have saved me a lot of time if this were already up-to-date.
My build on Centos 8 with gcc 8.2.1:
cmake -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda/ -DLLVM_ENABLE_PROJECTS="clang;llvm-spirv;sycl;libclc" -DSYCL_BUILD_PI_CUDA=ON -DLLVM_TARGETS_TO_BUILD="X86;NVPTX" -DLIBCLC_TARGETS_TO_BUILD="nvptx64--;nvptx64--nvidiacl" -DCMAKE_INSTALL_PREFIX=/home/szibo4/sycl-for-cuda-install -DCMAKE_BUILD_TYPE=Release -DLLVM_EXTERNAL_PROJECTS="llvm-spirv;sycl" -DLLVM_EXTERNAL_SYCL_SOURCE_DIR=../sycl-for-cuda/sycl -DLLVM_EXTERNAL_LLVM_SPIRV_SOURCE_DIR=../sycl-for-cuda/llvm-spirv ../sycl-for-cuda/llvm
Got some messages that I am not sure are good or not:
BUILDING nvptx64--
DEVICE: none ( )
The text was updated successfully, but these errors were encountered: