Hi,
I did nothing from any of the solutions mentioned above except for installing the Nvidia driver and activating it using Prime ( but I wanted to do it anyway because it does improve the performance of my laptop. This however, did not solve my problem.
Finally, I read in one of the post that some users ran the Salome singularity container directly, without installing it (or generating the python script). So I deleted the already generated python script and then I ran it directly using the command :
singularity run /home/user/Downloads/salome_meca-lgpl-2021.0.0-0-20210601-scibian-9.sif
And it simply worked.
The only thing that bugged me was that it was throwing some errors druing the startup, but overall the functionality has been as expected so those errors can be safely ignored. I have been running a meshing process on it and so far it has been working properly. I can only use NETGEN so far but that is probably because other options for mesh require separate license.
Note: I am using Ubuntu 22 (jammy) and my singularity version is 3.6.4 with go version 1.13.
sudo nano /etc/singularity/nvliblist.conf to comment out libGLX.so as shown below worked for me on Ubuntu 22.04:
…
libglx.so #libGLX.so
libnvcuvid.so
…
Yesterday, I re-installed Salome_Meca using the method given in ‘[Tips & Tricks] Install Salome_Meca on Windows using WSL’ in Simvia Youtube channel.
I followed the process described in Simvia’s github page. I did face some errors in installation and took help of Perplexity AI.
I had to install Nvidia-container, and GeForce Game Ready Driver - WHQL
Driver Version: 576.80 - Release Date: Tue Jun 17, 2025 (“NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.” error).
Then installed Docker Desktop and “Use WSL 2 instead of Hyper-V” selected. (“WSL2 supports NVIDIA GPU compute natively, but Singularity/Apptainer containers generally cannot access the GPU inside WSL2, even when nvidia-smi works on the WSL2 host.”)
Finally, able to launch Salome_Meca:
running Salome_Meca in GPU mode
++ using container salome_meca-lgpl-2024.1.0-1-20240327-scibian-11.sif
++ prepend system ‘libGL*’ libs.
So far, running good! Tested with couple of simulations.
I just now completed a run using the Singularity-based Salome_Meca installation and noticed that it took over two hours—more than double the time compared to the .tar file installation (“Salome Meca 2024.1 on WSL - Ready to use distribution”), which typically finishes in about an hour. Additionally, the file saving process did not complete even after an hour, so I had to terminate the run after three hours without any results. In contrast, the same .hdf file completed successfully, including .rmed saving, within an hour using the .tar-based installation.
I tried the Singularity version hoping it would resolve the occasional ‘Saving’ error I encounter with the .tar installation, but unfortunately, it was much slower and did not solve the issue.
I went through the nvidia instructions again, installed toolkit and commented my offending files (libGLdispatch.so and libGLX.so) in nvliblist.conf.
SM now starts but opening the geometry modules throws an error “OpenGL_Window::CreateWindow:glXCreateContext failed”. When trying to open Mesh or Aster-Study the program just shuts down.
I nearly became optimistic when I installed apptainer in Ubuntu 24.04 (on Linux), commented the offending files in /usr/local/etc/singularity/nvliblist.conf and opened SM with “apptainer run --nv salome_meca-lgpl-2024.1.0-1-20240327-scibian-11.sif”.
I could open a previous simulation, geometry and mesh looked fine, but Aster-study does not run.
Nowhere yet, but perhaps someone with the necessary knowledge can pursue this avenue, or is it a dead end as well?