From 422537693747c443602b8bef55d7d2ce88c24625 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 11 Mar 2020 14:12:14 +0100 Subject: [PATCH] pucuda change lib path --- python-3.7.6-0.build.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/python-3.7.6-0.build.sh b/python-3.7.6-0.build.sh index 550eca0..5b2f1c5 100755 --- a/python-3.7.6-0.build.sh +++ b/python-3.7.6-0.build.sh @@ -285,12 +285,16 @@ pip3 install --prefix=$PREFIX scour # https://github.molgen.mpg.de/mar #pycuda git version to get GL support ( + PYCUDAVERS=2019.1.2 + . ${PREFIX}/profile cd $BUILDDIR - test -d pycuda || git clone --recursive http://git.tiker.net/trees/pycuda.git + test -e pycuda-${PYCUDAVERS}.tar.gz || wget https://github.com/inducer/pycuda/archive/v${PYCUDAVERS}/pycuda-${PYCUDAVERS}.tar.gz + test -d pycuda-${PYCUDAVERS} || tar -xf pycuda-${PYCUDAVERS}.tar.gz + #test -d pycuda || git clone --recursive http://git.tiker.net/trees/pycuda.git - cd pycuda - git clean -dffx + cd pycuda-${PYCUDAVERS} + test -e siteconf.py && rm siteconf.py python3 configure.py \ --cuda-enable-gl \ --cuda-root=$CUDADIR \ @@ -298,9 +302,9 @@ pip3 install --prefix=$PREFIX scour # https://github.molgen.mpg.de/mar --boost-python-libname=boost_python37 \ --boost-inc-dir=$PREFIX/include \ --boost-lib-dir=$PREFIX/lib \ - --cudadrv-lib-dir='${CUDA_ROOT}/lib64,${CUDA_ROOT}/lib64/stubs' \ - --cudart-lib-dir='${CUDA_ROOT}/lib64,${CUDA_ROOT}/lib64/stubs' \ - --curand-lib-dir='${CUDA_ROOT}/lib64,${CUDA_ROOT}/lib64/stubs'\ + --cudadrv-lib-dir='${CUDA_ROOT}/lib,${CUDA_ROOT}/lib/stubs' \ + --cudart-lib-dir='${CUDA_ROOT}/lib,${CUDA_ROOT}/lib/stubs' \ + --curand-lib-dir='${CUDA_ROOT}/lib,${CUDA_ROOT}/lib/stubs'\ --ldflags=-L$PREFIX/lib python3 setup.py install --prefix $PREFIX