forked from ajameson/dedisp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.inc
More file actions
60 lines (43 loc) · 1.87 KB
/
Makefile.inc
File metadata and controls
60 lines (43 loc) · 1.87 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# The definitions in this file should be changed to match your system
SHELL := /bin/bash
CUDA_PATH ?= /usr/local/cuda
INSTALL_DIR ?= $(HOME)/linux_64
CUDA_DIR ?= $(CUDA_PATH)
THRUST_DIR ?= $(CUDA_DIR)/include
GPU_ARCH ?= sm_30
# Some implementations
# OneAPI distributed clang, missing <sycl/sycl.hpp> header (patched using `__has_include(<sycl/sycl.hpp>)`)
#SYCLCC ?= /opt/intel/oneapi/compiler/latest/linux/bin-llvm/clang -fsycl
#SYCL_FLAGS ?=
# OneAPI distributed dpcpp, missing <sycl/sycl.hpp> header (patched using `__has_include(<sycl/sycl.hpp>)`). They use <CL/sycl.hpp> and cl::sycl
#SYCLCC ?= /opt/intel/oneapi/compiler/latest/linux/bin/dpcpp
#SYCL_FLAGS ?=
# hipSYCL syclcc
SYCLCC ?= /opt/hipSYCL/bin/syclcc
SYCL_FLAGS ?= --hipsycl-targets="omp;cuda:sm_60;hip:gfx906" --hipsycl-explicit-multipass --hipsycl-cuda-path=/usr/local/cuda
# hipSYCL syclcc + intel/llvm fork, missing '-fsycl-unnamed-lambda' flag, "highly experimental".
#SYCLCC ?= /opt/hipSYCL/bin/syclcc
#SYCL_FLAGS ?= --hipsycl-targets="omp;spirv" --hipsycl-clang=/opt/intel-llvm/bin/clang
# Codeplay ComputeCpp, missing SYCL 2020 features
#SYCLCC ?= /opt/computecpp/bin/compute++
#SYCL_FLAGS ?= -sycl-driver -I /opt/computecpp/include/ -L /opt/computecpp/lib/ -lComputeCpp -sycl-target spir64
# triSYCL/triSYCL, missing SYCL 2020 features
#SYCLCC ?= clang
#SYCL_FLAGS ?= -I/opt/triSYCL/include -I/opt/mdspan/include -fopenmp -lomp -std=c++17
# intel/llvm
#SYCLCC ?= /opt/intel-llvm/bin/clang -fsycl
#SYCL_FLAGS ?= -lstdc++
# xilinx/llvm, compiler crashes in my environment...
#SYCLCC ?= /opt/xilinx-llvm/bin/clang -fsycl
#SYCL_FLAGS ?= -lstdc++ -fsycl-targets=fpga64_hw_emu
LIB_ARCH = lib64
GCC = gcc
GXX = g++
AR = ar
# NVCC = $(CUDA_DIR)/bin/nvcc #-Xptxas -abi=no
DOXYGEN = doxygen
RM = rm
ECHO = echo
MKFLAGS =
DEDISP_DEBUG = 1
#.SILENT :