Greetings
I’m trying to use the cudaPackages.libnvjitlink library in a shellhook to no avail.
Specifically, I include the package in my ‘shell.nix’ file and try to reference it as follows:
...
nativeBuildInputs = [
cudaPackages.cudatoolkit
cudaPackages.libnvjitlink
...
];
shellHook = ''
echo "Entering CUDA-enabled nix-shell."
export CUDA_PATH=${pkgs.cudatoolkit}
export LD_LIBRARY_PATH=${pkgs.linuxPackages.nvidiaPackages.stable}/lib:${pkgs.ncurses}/lib:${cudaPackages.cudatoolkit}/lib:${cudaPackages.libnvjitlink}/lib
export EXTRA_LDFLAGS="-L/lib -L${pkgs.linuxPackages.nvidiaPackages.stable}/lib"
export EXTRA_CCFLAGS="-I/usr/include"
'';
...
But I can not access libnvJitLink.so.13 which is provided by the package. When I manually look at the installed ‘cudaPackages.libnvjitlink’ directory in /nix/store, the only meaingful contents it shows are a nix-support/propogated-build-inputs.
So the real question becomes how do I reference this correctly from my shell.nix file?
Thank you