-
Is it possible to run multiple mace models on a single GPU? I am using a mace model as a driver for i-PI to perform MD simulations, but I only have one GPU and I found that running one model occupies few memory of GPU. Therefore, I am wondering if it is possible to run multiple Mace instances on one GPU. Thank you all for your answers, the following is my mace_driver.py file which launches mace.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I encountered this situation where you want to run two tasks for ASE (Atomic Simulation Environment). I think you can use some commands like 'nohup' to run the processes in the background |
Beta Was this translation helpful? Give feedback.
-
I think @RokasEl knows how to do that. |
Beta Was this translation helpful? Give feedback.
-
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 nvidia-cuda-mps-control -d at the start of your bash script. See link for more info. |
Beta Was this translation helpful? Give feedback.
For small simulations usually I just launch a bunch of jobs in a for loop in the background. For example:
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 usingat the start of your bash script. See link for more info.