Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 [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 this issue Apr 16, 2024 · 0 comments
Labels

Comments

@chailihui
Copy link

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

@chailihui chailihui added the bug label Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant