Use computecpp_info for SYCL device compiler flags
This commit is contained in:
parent
13f5c837f6
commit
b62c93527d
@ -1,11 +1,12 @@
|
||||
|
||||
COMPUTECPP_FLAGS = $(shell computecpp_info --dump-device-compiler-flags)
|
||||
|
||||
sycl-stream: main.cpp SYCLStream.cpp SYCLStream.sycl
|
||||
$(CXX) -O3 -std=c++11 -DSYCL main.cpp SYCLStream.cpp -include SYCLStream.sycl $(EXTRA_FLAGS) -lComputeCpp -lOpenCL -o $@
|
||||
|
||||
|
||||
SYCLStream.sycl: SYCLStream.cpp
|
||||
compute++ SYCLStream.cpp -sycl -no-serial-memop -O2 -emit-llvm -c
|
||||
compute++ SYCLStream.cpp $(COMPUTECPP_FLAGS) -c
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f SYCLStream.sycl
|
||||
rm -f sycl-stream SYCLStream.sycl SYCLStream.bc
|
||||
|
||||
Loading…
Reference in New Issue
Block a user