Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For a simple SYCL application as described at https://github.com/intel/llvm/blob/sycl/sycl/doc/GetStartedGuide.md, you can use the corresponding setup as follows. Notes:

  • The module oneapi-llvm is a slightly modified variant of the normal oneapi modules that also puts the llvm compiler executables into the path, i.e. it lets you invoke clang++ as demonstrated below.

  • The fitting GPU environment (here current CUDA modules) is required in conjunction with the oneapi tools.

Code Block
languagebash
ml fpga intel/oneapi-llvm system/CUDA
clang++ -fsycl -fsycl-targets=nvptx64-nvidia-cuda simple-sycl-app.cpp -o simple-sycl-app-cuda
## execution requires a gpu node
./simple-sycl-app-cuda

...