Mercurial > hg > Game > Cerium
changeset 2005:4d1bc8cd3a62 draft
fix Makefile(CUDA PATH)
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 27 May 2014 14:23:44 +0900 |
parents | 8aff72ad65de |
children | f6aa6d6a3fa2 |
files | TaskManager/Makefile.cuda example/Cuda/Makefile example/fft/Makefile.cuda example/word_count/Makefile.cuda |
diffstat | 4 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/Makefile.cuda Tue May 13 01:46:48 2014 +0900 +++ b/TaskManager/Makefile.cuda Tue May 27 14:23:44 2014 +0900 @@ -1,7 +1,7 @@ include ./Makefile.def TARGET = libCudaManager.a CFLAGS += -DHAS_POSIX_MEMALIGN -INCLUDE += -I/Developer/NVIDIA/CUDA-5.5/include +INCLUDE += -I$(CUDA_PATH) ifdef LINUX CFLAGS += -lrt
--- a/example/Cuda/Makefile Tue May 13 01:46:48 2014 +0900 +++ b/example/Cuda/Makefile Tue May 27 14:23:44 2014 +0900 @@ -13,7 +13,7 @@ CC += $(ABI) LIBS = -F/Library/Frameworks -framework CUDA -INCLUDE = -I/Developer/NVIDIA/CUDA-5.5/include +INCLUDE = -I$(CUDA_PATH) .SUFFIXES: .cc .o .cu .ptx .cc.o:
--- a/example/fft/Makefile.cuda Tue May 13 01:46:48 2014 +0900 +++ b/example/fft/Makefile.cuda Tue May 27 14:23:44 2014 +0900 @@ -21,9 +21,9 @@ CFLAGS += -D__CERIUM_CUDA__ -DGPU LIBS += `sdl-config --libs` -lCudaManager -F/Library/Frameworks -framework CUDA -INCLUDE += -I/Developer/NVIDIA/CUDA-5.5/include +INCLUDE += -I$(CUDA_PATH) -NVCC = /Developer/NVIDIA/CUDA-5.5/bin/nvcc +NVCC = nvcc NVCCFLAGS = -ptx -arch=sm_20 .SUFFIXES: .cc .o .cu .ptx
--- a/example/word_count/Makefile.cuda Tue May 13 01:46:48 2014 +0900 +++ b/example/word_count/Makefile.cuda Tue May 27 14:23:44 2014 +0900 @@ -21,9 +21,9 @@ CFLAGS += -D__CERIUM_CUDA__ LIBS += `sdl-config --libs` -lCudaManager -F/Library/Frameworks -framework CUDA -INCLUDE += -I/Developer/NVIDIA/CUDA-5.5/include +INCLUDE += -I$(CUDA_PATH) -NVCC = /Developer/NVIDIA/CUDA-5.5/bin/nvcc +NVCC = nvcc NVCCFLAGS = -ptx -arch=sm_20 .SUFFIXES: .cc .o .cu .ptx