Update Makefile with all and cuda stuff
This commit is contained in:
parent
39a63b7d32
commit
0aaceef49d
9
Makefile
9
Makefile
@ -1,16 +1,19 @@
|
|||||||
|
|
||||||
LIBS = -l OpenCL
|
LIBS = -l OpenCL
|
||||||
|
FLAGS = -std=c++11 -O3
|
||||||
|
|
||||||
PLATFORM = $(shell uname -s)
|
PLATFORM = $(shell uname -s)
|
||||||
ifeq ($(PLATFORM), Darwin)
|
ifeq ($(PLATFORM), Darwin)
|
||||||
LIBS = -framework OpenCL
|
LIBS = -framework OpenCL
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
all: gpu-stream-ocl gpu-stream-cuda
|
||||||
|
|
||||||
gpu-stream-ocl: ocl-stream.cpp
|
gpu-stream-ocl: ocl-stream.cpp
|
||||||
c++ $< -std=c++11 -o $@ $(LIBS)
|
c++ $< $(FLAGS) -o $@ $(LIBS)
|
||||||
|
|
||||||
gpu-stream-cuda: cuda-stream.cu
|
gpu-stream-cuda: cuda-stream.cu
|
||||||
nvcc $< -o $@
|
nvcc $< $(FLAGS) -o $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f gpu-stream-ocl
|
rm -f gpu-stream-ocl gpu-stream-cuda
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user