X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/snake_gpu.git/blobdiff_plain/935bdd1c8b99ce5d70b6e4a53ca29f06353e8baa..c17ca25473465d5550bc7e3e27b87b3d33d28dc6:/makefile?ds=sidebyside diff --git a/makefile b/makefile index 70d42b5..6e1ada5 100644 --- a/makefile +++ b/makefile @@ -12,7 +12,7 @@ PATH_INCLUDE = $(PATH_GCC)/src/ # compilateur CC = gcc -NVCC = /usr/local/cuda/bin/nvcc +NVCC = nvcc CXX = g++ # options de compilation @@ -31,7 +31,7 @@ OPTION_CC = $(OPTION_CC2) -I$(PATH_INCLUDE) -I$(PATH_SRC) # 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 # 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 +55,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) -arch=sm_13 --use_fast_math -c $< -o $@ $(PATH_LIB)%.o : $(PATH_SRC)%.c $(DEPS) $(CC) $(OPTION_CC) -c $< -o $@