Skip to content

install the compiler on a grace-hopper system #14586

Answered by lrpablo
jinz2014 asked this question in Q&A
Discussion options

You must be logged in to vote

The following steps allow for the compilation of DPCPP on a Grace Hopper system:

mkdir ~/sycl_workspace && cd ~/sycl_workspace
git clone https://github.com/intel/llvm.git
python3 $DPCPP_HOME/llvm/buildbot/configure.py --cuda --host-target "AArch64;ARM;X86" -t Release
python3 $DPCPP_HOME/llvm/buildbot/compile.py

To verify the installation:
Copy the example code from the llvm README.md.

export PATH=$DPCPP_HOME/llvm/build/bin:$PATH
export LD_LIBRARY_PATH=$DPCPP_HOME/llvm/build/lib:$LD_LIBRASY_PATH
clang++ -fsycl -fsycl-targets=nvptx64-nvidia-cuda simple-sycl-app.cpp -o simple-sycl-app-cuda.exe
ONEAPI_DEVICE_SELECTOR=cuda:* ./simple-sycl-app-cuda.exe

Hope it helps.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jinz2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants