cuda.patch 1.3 KB

1234567891011121314151617181920212223242526
  1. --- a/CHOLMOD/Tcov/Makefile
  2. +++ b/CHOLMOD/Tcov/Makefile
  3. @@ -1252,7 +1252,7 @@ l_super_solve.o: ../Supernodal/cholmod_super_solve.c
  4. cholmod_gpu_kernels.o: ../GPU/cholmod_gpu_kernels.c \
  5. ../GPU/cholmod_gpu_kernels.cu
  6. $(C) -DDLONG -c $(I) $<
  7. - $(NVCC) -I../../SuiteSparse_config -Xcompiler -fPIC -O3 -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -c ../GPU/cholmod_gpu_kernels.cu
  8. + $(NVCC) -I../../SuiteSparse_config -Xcompiler -fPIC -c ../GPU/cholmod_gpu_kernels.cu
  9. #-------------------------------------------------------------------------------
  10. --- a/SuiteSparse_config/SuiteSparse_config.mk
  11. +++ b/SuiteSparse_config/SuiteSparse_config.mk
  12. @@ -258,8 +257,6 @@ SUITESPARSE_VERSION = 5.8.1
  13. MAGMA_INC = -I/opt/magma-2.4.0/include/
  14. MAGMA_LIB = -L/opt/magma-2.4.0/lib/ -lmagma
  15. NVCC = $(CUDA_PATH)/bin/nvcc
  16. - NVCCFLAGS = -Xcompiler -fPIC -O3 \
  17. - -gencode=arch=compute_30,code=sm_30 \
  18. - -gencode=arch=compute_35,code=sm_35 \
  19. + NVCCFLAGS = -Xcompiler -fPIC \
  20. -gencode=arch=compute_50,code=sm_50 \
  21. -gencode=arch=compute_53,code=sm_53 \
  22. -gencode=arch=compute_53,code=sm_53 \