Unable to run Salome in GPU mode

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.

I hope this helps.

Cheers,
Aadi

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
…

Here is a general fix to test for recent Linux distributions.

At least it works for ubuntu 22.04.3

code-aster.org/forum2/viewtopic.php?pid=69607#p69607

@hberro Broken link. can you fix it please

@amit_code_aster This worked for me using Arch Linux

Thanks!!!

It is some time since someone posted on this topic, so I am trying again.

I did an upgrade from Ubuntu 20.04 to 20.04 to 24.04. Starting Salome Meca 2024 now throws this message:

johan@ThinkStation-P330:~/Programs/SM_2024$ ./salome_meca-lgpl-2024.1.0-1-20240327-scibian-11

/home/johan/Programs/SM_2024/./salome_meca-lgpl-2024.1.0-1-20240327-scibian-11:433: SyntaxWarning: invalid escape sequence ‘.’

regexp = re.compile(“hwloc_(.*).so”)

  • running salome_meca in GPU mode

++ using container salome_meca-lgpl-2024.1.0-1-20240327-scibian-11.sif

++ prepend system ‘libGL*’ libs

SALOME_Session_Server_No_Server: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38’ not found (required by /.singularity.d/libs/libGLdispatch.so.0)

SALOME_Session_Server_No_Server: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34’ not found (required by /.singularity.d/libs/libGLdispatch.so.0)

SALOME_Session_Server_No_Server: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38’ not found (required by /.singularity.d/libs/libGLX.so.0)

SALOME_Session_Server_No_Server: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34’ not found (required by /.singularity.d/libs/libGLX.so.0)

I am using a Nvidia P 620 graphics card. The above solutions do not works.

Any help will be greatly appreciated

Hi,

Install nvidia-container-toolkit

Thanks for the reply. I have tried twice and the toolkit did not install, but I will try again

@johan

Did the solution proposed by Vishwas, work?

@vishwas

I have successfully installed the nvidia-container-toolkit, but I obtain an error saying

SALOME_Session_Server_No_Server: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_ABI_DT_RELR’ not found (required by /.singularity.d/libs/libGL.so.1)

@Aurelius

For anyone else who encounters this error in future. Just comment out the offending library in the nvliblist file.

@Aurelius

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.

@Aurelius No success yet.

@johan

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.

Some progress but nowhere yet.

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?