From f154bc2757d4b17af72bbe18e4491c4eec8f7ba6 Mon Sep 17 00:00:00 2001 From: caubet_m Date: Wed, 8 Jun 2022 14:56:09 +0200 Subject: [PATCH] Update LIBRARY_PATH,C_INCLUDE_PATH,CPLUS_INCLUDE_PATH --- Programming/cuda/modulefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Programming/cuda/modulefile b/Programming/cuda/modulefile index 07b2aed..b626491 100644 --- a/Programming/cuda/modulefile +++ b/Programming/cuda/modulefile @@ -14,9 +14,14 @@ harnessing the power of the graphics processing unit (GPU). 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" +prepend-path LIBRARY_PATH "$PREFIX/lib64/stubs" +prepend-path LIBRARY_PATH "$PREFIX/targets/x86_64-linux/lib/stubs" + +prepend-path C_INCLUDE_PATH "$PREFIX/targets/x86_64-linux/include" +prepend-path CPLUS_INCLUDE_PATH "$PREFIX/targets/x86_64-linux/include" # 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 +# Therefore, LD_LIBRARY_PATH must not contain any libnvidia-ml.so reference in the GDK package # prepend-path LD_LIBRARY_PATH "$PREFIX/lib/stubs" +# prepend-path LD_LIBRARY_PATH "$PREFIX/targets/x86_64-linux/lib/stubs"