From 0aaceef49dcbb6e8f09792bcc4c8eb70a823592a Mon Sep 17 00:00:00 2001 From: Tom Deakin Date: Thu, 16 Jul 2015 18:16:27 +0100 Subject: [PATCH] Update Makefile with all and cuda stuff --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 51cade1..a2ad125 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,19 @@ LIBS = -l OpenCL +FLAGS = -std=c++11 -O3 PLATFORM = $(shell uname -s) ifeq ($(PLATFORM), Darwin) LIBS = -framework OpenCL endif +all: gpu-stream-ocl gpu-stream-cuda + gpu-stream-ocl: ocl-stream.cpp - c++ $< -std=c++11 -o $@ $(LIBS) + c++ $< $(FLAGS) -o $@ $(LIBS) gpu-stream-cuda: cuda-stream.cu - nvcc $< -o $@ + nvcc $< $(FLAGS) -o $@ clean: - rm -f gpu-stream-ocl + rm -f gpu-stream-ocl gpu-stream-cuda