]> AND Private Git Repository - snake_gpu.git/blobdiff - makefile
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
test tex
[snake_gpu.git] / makefile
index 70d42b529b7738ea8dfce4bf0d95cec404048c64..67b731ba002751df87b52a0a04058af2f63ef770 100644 (file)
--- a/makefile
+++ b/makefile
@@ -12,7 +12,7 @@ PATH_INCLUDE = $(PATH_GCC)/src/
 
 # compilateur
 CC = gcc
-NVCC = /usr/local/cuda/bin/nvcc
+NVCC = nvcc #/usr/local/cuda/bin/nvcc
 CXX = g++
 
 # options de compilation
@@ -28,10 +28,12 @@ OPTION_CC2 =  $(OPTION_CC1)  -funroll-all-loops -fstrict-aliasing
 
 OPTION_CC = $(OPTION_CC2) -I$(PATH_INCLUDE) -I$(PATH_SRC)
 
-
+#includes NV
+INCNV = -I/home/perrot/NVIDIA_GPU_Computing_SDK/C/common/inc/
 # librairies pour la compilation
 LIB_CC = -lm 
-LIBSNV = -L/usr/local/cuda/lib64 -lcuda -lcudart
+LIBSNV = -L/cm/shared/apps/cuda31/toolkit/3.1/lib64/ -lcuda -lcudart
+#LIBSNV = -L/usr/local/cuda/lib64 -lcuda -lcudart
 
 # sources utiles a la compilation des main
 SRCS =         lib_alloc.c lib_images.c lib_math.c lib_snake_common.c lib_contour.c
@@ -55,7 +57,7 @@ clean :
 # --use_fast_math
 # --ptxas-options=-v
 $(PATH_LIB)%_gpu.o :   $(PATH_SRC)%_gpu.cu
-                       $(NVCC) -arch=sm_20 --use_fast_math -c $< -o $@ 
+                       $(NVCC) $(INCNV) -arch=sm_13 --use_fast_math -c $< -o $@        
 
 $(PATH_LIB)%.o :       $(PATH_SRC)%.c $(DEPS)
                        $(CC) $(OPTION_CC) -c $< -o $@