diff --git a/recipe/build-lib.sh b/recipe/build-lib.sh index 156a9c67..50dde88b 100644 --- a/recipe/build-lib.sh +++ b/recipe/build-lib.sh @@ -5,17 +5,17 @@ if [ ${cuda_compiler_version} != "None" ]; then # docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html#major-components__table-cuda-toolkit-driver-versions # docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#gpu-feature-list if [ ${cuda_compiler_version} == "9.2" ]; then - CUDA_ARCH="-gencode=arch=compute_35,code=compute_35" + CUDA_ARCH="-gencode arch=compute_35,code=compute_35 " fi - CUDA_ARCH="${CUDA_ARCH} -gencode=arch=compute_50,code=compute_50" - CUDA_ARCH="${CUDA_ARCH} -gencode=arch=compute_52,code=compute_52" - CUDA_ARCH="${CUDA_ARCH} -gencode=arch=compute_60,code=compute_60" - CUDA_ARCH="${CUDA_ARCH} -gencode=arch=compute_61,code=compute_61" - CUDA_ARCH="${CUDA_ARCH} -gencode=arch=compute_70,code=compute_70" - CUDA_ARCH="${CUDA_ARCH} -gencode=arch=compute_72,code=compute_72" + #CUDA_ARCH="${CUDA_ARCH}-gencode=arch=compute_50,code=compute_50 " + #CUDA_ARCH="${CUDA_ARCH}-gencode=arch=compute_52,code=compute_52 " + CUDA_ARCH="${CUDA_ARCH}-gencode=arch=compute_60,code=compute_60 " + CUDA_ARCH="${CUDA_ARCH}-gencode=arch=compute_61,code=compute_61 " + CUDA_ARCH="${CUDA_ARCH}-gencode=arch=compute_70,code=compute_70 " + CUDA_ARCH="${CUDA_ARCH}-gencode=arch=compute_72,code=compute_72 " # compare part of cuda_compiler_version before the dot if [ ${cuda_compiler_version%.*} == "10" ]; then - CUDA_ARCH="${CUDA_ARCH} -gencode=arch=compute_75,code=compute_75" + CUDA_ARCH="${CUDA_ARCH}-gencode=arch=compute_75,code=compute_75" fi # wrap CUDA_ARCH in quotes @@ -28,7 +28,7 @@ echo $CUDA_CONFIG_ARG # Build vanilla version (no avx) ./configure --prefix=${PREFIX} --exec-prefix=${PREFIX} \ --with-blas=-lblas --with-lapack=-llapack \ - ${CUDA_CONFIG_ARG} + ${CUDA_CONFIG_ARG} && exit 1 echo $CUDA_CONFIG_ARG # make sets SHAREDEXT correctly for linux/osx