summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ec76229
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+SYCL=/home/ztuowen/sycl/install
+CXX=$(SYCL)/bin/clang++
+LIBDIR=$(SYCL)/lib
+
+all:sycltest
+
+sycltest:main.cpp
+ $(CXX) -O3 -std=c++14 -lstdc++ -fopenmp -fsycl -o $@ $^ -lsycl -lOpenCL -Wl,--rpath=$(LIBDIR)
+
+clean:
+ -rm sycltest
+
+.PHONY:all clean