Hi everyone,
I’m a new user on the Salome-Meca platform and I would like some advice on the best (least painful) way to get a working installation with GPU acceleration.
Here’s what I’ve tried so far and my experiences:
-
Windows 11 (WSL2): I tried the 2024 WSL2 version of Salome-Meca. Unfortunately, Salome crashes every time I open results in AsterStudy or ParaVis.
-
Ubuntu 22.04 + NVIDIA RTX 3060 (latest proprietary driver): I ran the official Singularity/Apptainer container for Salome-Meca 2024. It only works in software rendering mode, which causes major rendering errors in Mesh and AsterStudy (selections aren’t clear, graphics are garbled, etc). After many attempts and reading forum posts, I still haven’t managed to fix the libGL / GPU-related issues (see below).
-
Salome 9.14 binaries: I installed the standalone binaries for Salome 9.14. GPU acceleration works fine here (fast/smooth, no rendering glitches, looks nice), but it is of course missing AsterStudy.
My questions:
- Is there a prefered combination of hardware, Linux distribution, and driver versions that reliably runs Salome-Meca with GPU support?
- Has anyone successfully run Salome-Meca 2024 on Ubuntu 22.04 with an NVIDIA GPU (RTX 3060 or similar)? If so, is there a step-by-step guide to make GPU mode work?
Summary of attempt to make salome-meca in GPU mode work:
- Installed and configured the NVIDIA Container Toolkit so Apptainer uses nvidia-container-cli.
- Edited Apptainer’s nvliblist.conf to disable binding host libGLX.so and libGLdispatch.so, which were causing GLIBC_2.34 not found errors inside the container.
- Exported environment variables (SALOME_PREFER_SYSTEM_LIBGL=false, SALOME_USE_SYSTEM_LIBGL=false, __GLX_VENDOR_LIBRARY_NAME=nvidia, __NV_PRIME_RENDER_OFFLOAD=1) to force Salome to use its own GL stack instead of the host’s.
- Bind-mounted a modified 90_env_salome_meca.py startup script to comment out the lines that prepend host libGL* libs to LD_LIBRARY_PATH.
- Despite these steps, Salome-Meca 2024 still tries to prepend system libGL* libraries, and I haven’t managed to get it to run reliably in GPU mode.
Thanks in advance for any advice!
PS: I am really enjoying Salome’s filesystem structure and the explicit definitions in pre- and postprocessing. I am looking forward to get GPU acceleration working so I can dive deeper into the use of salome-meca.