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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to choose one GPU in dual GPU system? (SOLVED) #1776

Open
yoyokalf5 opened this issue Dec 19, 2024 · 2 comments
Open

How to choose one GPU in dual GPU system? (SOLVED) #1776

yoyokalf5 opened this issue Dec 19, 2024 · 2 comments

Comments

@yoyokalf5
Copy link

We have a dual GPU server with Tesla P40 and M40, which have different architectures. I must turn off manually in one GPU to run SPECFEM3D. How to instruct the SPECFEM3D to run using GPU 0 or 1 without turning off one GPU?

@tianshi-liu
Copy link

Is "CUDA_VISIBLE_DEVICES=0 mpirun -np $NPROC ./bin/xspecfem3D" what you want? It tells the system to use GPU 0 only, and you can use "nvidia-smi" to check which GPU is 0 or 1. If you don't use MPI then "CUDA_VISIBLE_DEVICES=0 ./bin/xspecfem3D" should be enough.

@yoyokalf5
Copy link
Author

Thank you so much, It's work.

image

@yoyokalf5 yoyokalf5 changed the title How to choose one GPU in dual GPU system? How to choose one GPU in dual GPU system? (SOLVED) Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants