Description
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 ( )