Skip to content

Commit

Permalink
add DPC++ recipe for A100
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffhammond committed Aug 16, 2023
1 parent 929f43a commit f2c1e1e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions common/make.defs.nvhpc
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ OPENCLFLAG=-I${OPENCLDIR}/include -L${OPENCLDIR}/lib -lOpenCL
#OPENCLFLAG+=-Wno-ignored-attributes -Wno-deprecated-declarations
#OPENCLFLAG+=-Wno-deprecated-declarations -Wno-missing-braces
#
# Intel SYCL - https://github.com/intel/llvm/blob/sycl/sycl/doc/GetStartedWithSYCLCompiler.md
#
SYCLDIR=${HOME}/DPCPP/build
SYCLCXX=${SYCLDIR}/bin/clang++
SYCLFLAG=-std=c++20 -O3
SYCLFLAG+=-DDPCPP # important
SYCLFLAG+=-fsycl #-fsycl-unnamed-lambda
SYCLFLAG+=-fsycl-targets=nvptx64-nvidia-cuda
SYCLFLAG+=-L${SYCLDIR}/lib -lsycl -Wl,-rpath=${SYCLDIR}/lib
#
#
# Parallel STL, Boost, etc.
#
Expand Down

0 comments on commit f2c1e1e

Please sign in to comment.