Merge branch 'libnvidia-ml' into 'master'

Fix libnvidia-ml

See merge request Pmodules/buildblocks!319
This commit is contained in:
2022-05-23 14:39:26 +00:00
2 changed files with 17 additions and 2 deletions

View File

@@ -18,3 +18,12 @@ pbuild::install() {
:
}
pbuild::post_install() {
if [ -f "/opt/psi/Programming/cuda/${V_PKG}/lib64/stubs/libnvidia-ml.so" ]
then
if [ ! -f "/opt/psi/Programming/cuda/${V_PKG}/lib64/stubs/libnvidia-ml.so.1" ]
then
ln -s /opt/psi/Programming/cuda/$V/lib64/stubs/libnvidia-ml.so /opt/psi/Programming/cuda/${V_PKG}/lib64/stubs/libnvidia-ml.so.1
fi
fi
}

View File

@@ -11,6 +11,12 @@ by NVIDIA. It enables dramatic increases in computing performance by
harnessing the power of the graphics processing unit (GPU).
"
prepend-path LIBRARY_PATH "$PREFIX/lib/stubs"
prepend-path LD_LIBRARY_PATH "$PREFIX/lib/stubs"
prepend-path CUDA_PATH "$PREFIX"
# libnvidia-ml.so in GDK package is a stub library that is attached only for build purposes
prepend-path LIBRARY_PATH "$PREFIX/lib64/stubs"
# We should always run with libnvidia-ml.so that is installed with your NVIDIA Display Driver.
# By default it's installed in /usr/lib and /usr/lib64.
# Therefore, LD_LIBRARY_PATH must not contain it
# prepend-path LD_LIBRARY_PATH "$PREFIX/lib/stubs"