summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index ec76229..ba99ce1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,16 @@
-SYCL=/home/ztuowen/sycl/install
+SYCL=/opt/intel/oneapi/compiler/latest/linux
CXX=$(SYCL)/bin/clang++
-LIBDIR=$(SYCL)/lib
-all:sycltest
+all:sycltest subgroup
sycltest:main.cpp
- $(CXX) -O3 -std=c++14 -lstdc++ -fopenmp -fsycl -o $@ $^ -lsycl -lOpenCL -Wl,--rpath=$(LIBDIR)
+ $(CXX) -O3 -std=c++14 -lstdc++ -fsycl -o $@ $^ -lsycl -lOpenCL
+
+subgroup:subgroup.cpp
+ $(CXX) -O3 -std=c++14 -lstdc++ -fsycl -o $@ $^ -lsycl -lOpenCL
clean:
-rm sycltest
+ -rm subgroup
.PHONY:all clean