Skip to content

Commit

Permalink
python-3.7.6: Add pycuda
Browse files Browse the repository at this point in the history
  • Loading branch information
david authored and donald committed Mar 29, 2020
1 parent 961b8f5 commit 366b331
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions python-3.7.6-0.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,33 @@ pip3 install --prefix=$PREFIX multiqc
install || exit 1
)

#pycuda git version to get GL support
(
PYCUDAVERS=2019.1.2

. ${PREFIX}/profile
cd $BUILDDIR
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-${PYCUDAVERS}
test -e siteconf.py && rm siteconf.py
python3 configure.py \
--cuda-enable-gl \
--cuda-root=$CUDADIR \
--no-use-shipped-boost \
--boost-python-libname=boost_python37 \
--boost-inc-dir=$PREFIX/include \
--boost-lib-dir=$PREFIX/lib \
--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
)

# try to load all packages, maybe we can see installation errors
python3 -c 'help("modules")' > /dev/null

Expand Down

0 comments on commit 366b331

Please sign in to comment.