# Unable to run Salome in GPU mode

**URL:** <https://code-aster.org/forum/t/unable-to-run-salome-in-gpu-mode/11252>\
**Category:** Salome-Meca installation\
**Created:** [August 1, 2022, 11:22pm UTC](https://code-aster.org/forum/t/unable-to-run-salome-in-gpu-mode/11252 "2022-08-01T23:22:45Z")\
**Posts on this page:** 16\
**Page:** 2

<div class="post-metadata">

**Author:** ![aadicfd](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/a/bbce88/32.png) [@aadicfd](https://code-aster.org/forum/u/aadicfd)\
**Post date:** [September 6, 2022, 5:28pm UTC](https://code-aster.org/forum/t/unable-to-run-salome-in-gpu-mode/11252/21 "2022-09-06T17:28:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Brigity](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/b/41988e/32.png) [@Brigity](https://code-aster.org/forum/u/Brigity)\
**Post date:** [June 17, 2023, 7:11am UTC](https://code-aster.org/forum/t/unable-to-run-salome-in-gpu-mode/11252/22 "2023-06-17T07:11:06Z")

</div>

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  
…

---

<div class="post-metadata">

**Author:** ![hberro](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/h/a88e4f/32.png) [@hberro](https://code-aster.org/forum/u/hberro)\
**Post date:** [September 3, 2023, 9:37am UTC](https://code-aster.org/forum/t/unable-to-run-salome-in-gpu-mode/11252/23 "2023-09-03T09:37:15Z")

</div>

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](http://code-aster.org/forum2/viewtopic.php?pid=69607#p69607)

---

<div class="post-metadata">

**Author:** ![Humberto](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/h/bbe5ce/32.png) [@Humberto](https://code-aster.org/forum/u/Humberto)\
**Post date:** [February 19, 2025, 7:57pm UTC](https://code-aster.org/forum/t/unable-to-run-salome-in-gpu-mode/11252/24 "2025-02-19T19:57:10Z")

</div>

@hberro Broken link. can you fix it please

---

<div class="post-metadata">

**Author:** ![Humberto](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/h/bbe5ce/32.png) [@Humberto](https://code-aster.org/forum/u/Humberto)\
**Post date:** [February 19, 2025, 7:57pm UTC](https://code-aster.org/forum/t/unable-to-run-salome-in-gpu-mode/11252/25 "2025-02-19T19:57:57Z")

</div>

@amit_code_aster This worked for me using Arch Linux

Thanks!!!

---

<div class="post-metadata">

**Author:** ![johan](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/j/dec6dc/32.png) [@johan](https://code-aster.org/forum/u/johan)\
**Post date:** [June 15, 2025, 9:22am UTC](https://code-aster.org/forum/t/unable-to-run-salome-in-gpu-mode/11252/26 "2025-06-15T09:22:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![v\_kumar](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/v/e95f7d/32.png) [@v\_kumar](https://code-aster.org/forum/u/v_kumar)\
**Post date:** [June 15, 2025, 6:36pm UTC](https://code-aster.org/forum/t/unable-to-run-salome-in-gpu-mode/11252/27 "2025-06-15T18:36:58Z")

</div>

Hi,

Install nvidia-container-toolkit

---

<div class="post-metadata">

**Author:** ![johan](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/j/dec6dc/32.png) [@johan](https://code-aster.org/forum/u/johan)\
**Post date:** [June 20, 2025, 9:58am UTC](https://code-aster.org/forum/t/unable-to-run-salome-in-gpu-mode/11252/28 "2025-06-20T09:58:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Aurelius-Nero](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/a/b487fb/32.png) [@Aurelius-Nero](https://code-aster.org/forum/u/Aurelius-Nero)\
**Post date:** [June 25, 2025, 11:57am UTC](https://code-aster.org/forum/t/unable-to-run-salome-in-gpu-mode/11252/29 "2025-06-25T11:57:39Z")

</div>

@johan

Did the solution proposed by Vishwas, work?

---

<div class="post-metadata">

**Author:** ![Aurelius-Nero](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/a/b487fb/32.png) [@Aurelius-Nero](https://code-aster.org/forum/u/Aurelius-Nero)\
**Post date:** [June 25, 2025, 11:59am UTC](https://code-aster.org/forum/t/unable-to-run-salome-in-gpu-mode/11252/30 "2025-06-25T11:59:27Z")

</div>

@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)

---

<div class="post-metadata">

**Author:** ![Aurelius-Nero](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/a/b487fb/32.png) [@Aurelius-Nero](https://code-aster.org/forum/u/Aurelius-Nero)\
**Post date:** [June 25, 2025, 1:31pm UTC](https://code-aster.org/forum/t/unable-to-run-salome-in-gpu-mode/11252/31 "2025-06-25T13:31:33Z")

</div>

@Aurelius

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

---

<div class="post-metadata">

**Author:** ![cskn](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/c/c67d28/32.png) [@cskn](https://code-aster.org/forum/u/cskn)\
**Post date:** [June 26, 2025, 9:23am UTC](https://code-aster.org/forum/t/unable-to-run-salome-in-gpu-mode/11252/32 "2025-06-26T09:23:28Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![cskn](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/c/c67d28/32.png) [@cskn](https://code-aster.org/forum/u/cskn)\
**Post date:** [June 26, 2025, 12:04pm UTC](https://code-aster.org/forum/t/unable-to-run-salome-in-gpu-mode/11252/33 "2025-06-26T12:04:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![johan](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/j/dec6dc/32.png) [@johan](https://code-aster.org/forum/u/johan)\
**Post date:** [July 9, 2025, 3:47pm UTC](https://code-aster.org/forum/t/unable-to-run-salome-in-gpu-mode/11252/34 "2025-07-09T15:47:12Z")

</div>

@Aurelius No success yet.

---

<div class="post-metadata">

**Author:** ![johan](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/j/dec6dc/32.png) [@johan](https://code-aster.org/forum/u/johan)\
**Post date:** [July 10, 2025, 4:57am UTC](https://code-aster.org/forum/t/unable-to-run-salome-in-gpu-mode/11252/35 "2025-07-10T04:57:10Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![johan](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/j/dec6dc/32.png) [@johan](https://code-aster.org/forum/u/johan)\
**Post date:** [July 10, 2025, 12:22pm UTC](https://code-aster.org/forum/t/unable-to-run-salome-in-gpu-mode/11252/36 "2025-07-10T12:22:27Z")

</div>

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?

[Previous page](https://code-aster.org/forum/t/unable-to-run-salome-in-gpu-mode/11252.md?page=1)
