WSL2 is is the most important win11 app that i use, for Sage, Pari, Singular and mixing with
Numba/Cupy/Jax and soon more dask_cudf.
Recently, I decided to update my nvhpc to the new one, Also, now, working over Kali WSL2.
I wanted to see how it goes with Nsight/System/Compute.
NVIDIA HPC SDK Current Release Downloads | NVIDIA Developer
The summary, it is not a big secret to say WSL2 has serious RAM management problems.
I have at least one crash/day.
1)Installing Problems
2)Problems with Numba
3) Problems with cupy.
ok. one by one
a- wget https://developer.download.nvidia.com/hpc-sdk/24.9/nvhpc_2024_249_Linux_x86_64_cuda_12.6.tar.gz
b- tar xpzf nvhpc_2024_249_Linux_x86_64_cuda_12.6.tar.gz
c- nvhpc_2024_249_Linux_x86_64_cuda_12.6/install
Then boom crashes. WSL2 have ram problems. It uses ram up to the upper limit and instead
of abort, it crashes. But it is annoying even with copy just copy some files. What is the Problem?
It turned out that the install copied already many files before it crashes.
I use ncdu to compare what already copied.
The first time i restart but the same crash.
So, I will not download 12G for nothing. I used to ncdu to compare what copied and what remained
Then here the simple trick
DELETE some files from the untared dir (that you created in b using tar xpzf …)
for example delete
drwxr-xr-x 6 mabd mabd 4096 Oct 10 18:46 comm_libs
drwxr-xr-x 15 mabd mabd 4096 Sep 24 02:44 compilers
drwxr-xr-x 3 mabd mabd 4096 Oct 10 18:46 cuda
if they are already copied and then launch the install again for the remaining
drwxr-xr-x 11 mabd mabd 4096 Oct 10 20:35 examples
drwx------ 3 root root 4096 Oct 10 18:46 math_libs
drwxr-xr-x 4 mabd mabd 4096 Sep 24 02:38 profilers
drwxr-xr-x 6 mabd mabd 4096 Sep 24 02:43 REDIST
It will copy the rest and make for you the needed symbolic links and then give you the nice
generating environment modules for NV HPC SDK 24.9 … done.
Installation complete.
HPC SDK successfully installed into /opt/nvidia/hpc_sdk
If you use the Environment Modules package, that is, the module load
command, the NVIDIA HPC SDK includes a script to set up the
appropriate module files.
% module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/24.9
% module load nvhpc/24.9
Alternatively, the shell environment may be initialized to use the HPC SDK.
In csh, use these commands:
% set path = (/opt/nvidia/hpc_sdk/Linux_x86_64/24.9/compilers/bin $path)
% setenv MANPATH /opt/nvidia/hpc_sdk/Linux_x86_64/24.9/compilers/man:“$MANPATH”
To use MPI, also set:
% set path = (/opt/nvidia/hpc_sdk/Linux_x86_64/24.9/comm_libs/mpi/bin $path)
In bash, sh, or ksh, use these commands:
$ export PATH=/opt/nvidia/hpc_sdk/Linux_x86_64/24.9/compilers/bin:$PATH
$ export MANPATH=/opt/nvidia/hpc_sdk/Linux_x86_64/24.9/compilers/man:$MANPATH
To use MPI, also set:
$ export PATH=/opt/nvidia/hpc_sdk/Linux_x86_64/24.9/comm_libs/mpi/bin:$PATH
Please check https://developer.nvidia.com for documentation,
use of NVIDIA HPC SDK software, and other questions.
very good
over Kali there no modules just google for installing
[install environment module package]
it is two step install lua and then install lmod
once done you are ready to test your installation