Parcourir la source

examples/Makefile.am: the option -arch sm_13 is needed to compile the kernel reductions/dot_product_kernels.cu as it uses double operations

Nathalie Furmento il y a 12 ans
Parent
commit
c678c91655
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      examples/Makefile.am

+ 2 - 0
examples/Makefile.am

@@ -792,6 +792,8 @@ reductions_dot_product_SOURCES =		\
 if STARPU_USE_CUDA
 reductions_dot_product_SOURCES +=		\
 	reductions/dot_product_kernels.cu
+reductions/dot_product_kernels.o: reductions/dot_product_kernels.cu
+	$(NVCC) $< -c -o $@ $(NVCCFLAGS) -arch sm_13
 endif
 if STARPU_USE_OPENCL
 nobase_STARPU_OPENCL_DATA_DATA += \