Skip to content
tomflinda edited this page Aug 20, 2025 · 2 revisions

Welcome to the llvm wiki! Step 1: build llvm command:

export DPCPP_HOME=~/hdd/sycl_workspace

mkdir $DPCPP_HOME
cd $DPCPP_HOME

python3 $DPCPP_HOME/llvm/buildbot/configure.py --cuda -o $DPCPP_HOME/build -t Release
python3 $DPCPP_HOME/llvm/buildbot/compile.py -o $DPCPP_HOME/build

export PATH=$DPCPP_HOME/build/install/bin:$PATH
export LD_LIBRARY_PATH=$DPCPP_HOME/build/install/lib:$LD_LIBRARY_PATH
export CPATH=$DPCPP_HOME/build/install/include:$CPATH


#clang++ -fsycl   simple-sycl-app.cpp -o simple-sycl-app-cuda.exe

And apply the changes in the patch show:

diff --git a/buildbot/configure.py b/buildbot/configure.py
index 0b2a464ceb36..73f15ffc020b 100644
         "-DBUG_REPORT_URL=https://github.com/intel/llvm/issues",
         "-DSYCL_INSTALL_DEVICE_CONFIG_FILE={}".format(sycl_install_device_config_file),
+        "-DUMF_DISABLE_HWLOC=ON",
+        "-DUSE_VALGRIND=OFF"
     ]
 
     if libclc_enabled:
Clone this wiki locally