Просмотр исходного кода

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 лет назад: 13
Родитель
Сommit
c678c91655
1 измененных файлов с 2 добавлено и 0 удалено
  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 += \