summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2020-10-22 20:19:37 -0600
committerTuowen Zhao <ztuowen@gmail.com>2020-10-22 20:19:37 -0600
commitc699af920419025f86f284917385f8de5efd8fd3 (patch)
tree4c920ca9c8ee063913921623a7f8a4647d30bdbc /Makefile
parent5ae0da8484744859e09fad869b44dccdb5f66f2f (diff)
downloadsycltest-c699af920419025f86f284917385f8de5efd8fd3.tar.gz
sycltest-c699af920419025f86f284917385f8de5efd8fd3.tar.bz2
sycltest-c699af920419025f86f284917385f8de5efd8fd3.zip
update
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