SPECFEM / specfem2d

SPECFEM2D simulates forward and adjoint seismic wave propagation in two-dimensional acoustic, (an)elastic, poroelastic or coupled acoustic-(an)elastic-poroelastic media, with Convolution PML absorbing conditions.
https://specfem.org
GNU General Public License v3.0
203 stars 147 forks source link

🐛 [BUG] - ./bin/xspecfem2D: error while loading shared libraries: libcudart.so.12: cannot open shared object file: No such file or directory #1217

Open chailihui opened 7 months ago

chailihui commented 7 months ago

Description

Dear friends, I was trying specfem with gpu. If I configured without cuda, $./configure FC=gfortran CC=gcc MPIFC=mpif90 MPI_INC=/usr/include/x86_64-linux-gnu/mpich --with-mpi --with-scotch-dir=./external_libs/scotch Then I can run the examplesimple_topography_and_also_a_simple_fluid_layer by the default ./run_this_example.sh successfully. But if I configure with cuda $ ./configure FC=gfortran CC=gcc MPIFC=mpif90 MPI_INC=/usr/include/x86_64-linux-gnu/mpich --with-mpi -with-cuda=cuda12 CUDA_LIB=/opt/nvidia/hpc_sdk/Linux_x86_64/23.7/cuda/lib64 --with-scotch-dir=./external_libs/scotch I got the error message: /bin/xspecfem2D: error while loading shared libraries: libcudart.so.12: cannot open shared object file: No such file or directory

My nvidia-smi shows

+---------------------------------------------------------------------------------------+ | NVIDIA-SMI 535.171.04 Driver Version: 535.171.04 CUDA Version: 12.2 | |-----------------------------------------+----------------------+----------------------+ | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |=========================================+======================+======================| | 0 NVIDIA GeForce RTX 3090 Off | 00000000:73:00.0 On | N/A | | 30% 38C P8 30W / 350W | 590MiB / 24576MiB | 3% Default | | | | N/A | +-----------------------------------------+----------------------+----------------------+ | 1 NVIDIA GeForce RTX 3090 Off | 00000000:D5:00.0 Off | N/A | | 30% 43C P8 17W / 350W | 16MiB / 24576MiB | 0% Default | | | | N/A | +-----------------------------------------+----------------------+----------------------+

Thanks for any help and information.

lihui

Affected SPECFEM2D version

8.1.0

Your software and hardware environment

GNU Fortran 9.4.0, mpich version 3.3.2, RTX 3090

Reproduction steps

1. $ ./configure FC=gfortran CC=gcc MPIFC=mpif90 MPI_INC=/usr/include/x86_64-linux-gnu/mpich --with-mpi -with-cuda=cuda12 CUDA_LIB=/opt/nvidia/hpc_sdk/Linux_x86_64/23.7/cuda/lib64 --with-scotch-dir=./external_libs/scotch
2. $ make
3. Go to 'EXAMPLES/imple_topography_and_also_a_simple_fluid_layer/'
4. $ ./run_this_example.sh

Screenshots

![DESCRIPTION](LINK.png)

Logs

No response

OS

Linux