Skip to content

How to run multiple Mace models on one GPU #440

Closed Answered by RokasEl
Swiftily asked this question in Q&A
Discussion options

You must be logged in to vote

For small simulations usually I just launch a bunch of jobs in a for loop in the background. For example:

for idx in $(seq 0 1 16); do
    python ./run_water_md.py &
done
wait

Where run_water_md.py is just a small script that uses ASE calculators etc. Depending on your cluster configuration, you might need to enable the CUDA multi-process service using

nvidia-cuda-mps-control -d

at the start of your bash script. See link for more info.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ilyes319
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants