Skip to content

How to better apply different LJ potential energies to each pair of particles? #2037

Answered by joaander
Boran-Zhao asked this question in Support
Discussion options

You must be logged in to vote

Your simulation will run more efficiently (and possibly even faster) on a single CPU core. Simulations generally need at least 10,000 particles before GPU throughput breaks even with a CPU (~64 cores).

https://github.com/glotzerlab/hoomd-benchmarks has scripts to evaluate this. The output is in steps per second. For comparison, your simulation runs at 5e6/(12*3600) = 115 steps per second.

The benchmark command is: python3 -m hoomd_benchmarks.md_pair_lj -N {N} --device {DEVICE} --repeat 20 --n_types {N_types}

Device N N_types TPS
CPU 526 1 1482
CPU 526 526 1037
GPU 526 1 14226
GPU 526 526 14070
GPU 10000 1 11069
GPU 1000 526 8878

I ran this on an A100 GPU. Your RTX 4090…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Boran-Zhao
Comment options

Answer selected by Boran-Zhao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants