forked from jeffhammond/stencil-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.defs.cuda
37 lines (37 loc) · 851 Bytes
/
make.defs.cuda
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
CXXFLAGS=-g -O3 -std=c++17
#
# Intel DPC++
#
#SYCLDIR=/opt/isycl
SYCLDIR=${HOME}/DPCPP/build
SYCLCXX=${SYCLDIR}/bin/clang++
SYCLFLAG=${CXXFLAGS}
SYCLFLAG+=-fsycl -fsycl-unnamed-lambda -DDPCPP
SYCLFLAG+=-L${SYCLDIR}/lib -lsycl -Wl,-rpath=${SYCLDIR}/lib
SYCLFLAG+=-fsycl-targets=nvptx64-nvidia-cuda-sycldevice -DDPCPP_CUDA
SYCLFLAG+=-Wno-unknown-cuda-version
#
# CodePlay ComputeCpp
#
#SYCLDIR=/opt/codeplay/latest
#SYCLCXX=${SYCLDIR}/bin/compute++
#SYCLFLAG+=${CXXFLAGS}
#SYCLFLAG+=-no-serial-memop
# NVIDIA target
#SYCLFLAG+=-sycl-target ptx64
#
# hipSYCL
#
#SYCLDIR=/opt/hipSYCL
#SYCLCXX=${SYCLDIR}/bin/syclcc-clang
#SYCLFLAG=${CXXFLAGS}
#SYCLFLAG+=-DHIPSYCL
#SYCLFLAG+=--hipsycl-platform=cuda
#SYCLFLAG+=--hipsycl-gpu-arch=sm_60
#
# CUDA flags
#
NVCC=nvcc
CUDAFLAGS=${CXXFLAGS}
CUDAFLAGS+=--gpu-architecture=sm_70
CUDAFLAGS+=-D_X86INTRIN_H_INCLUDED