Dear Chanaprom,
thank you for the profiling runs, they helped a lot. We reproduced your calculation on another machine with Intel Data Center GPU Max 1550 (Aurora) and found two things.
1. Your HSE results with 6.6.1 are not correct.
VASP 6.6.1 contains a bug in one GPU kernel of the exact-exchange part that only affects the OpenMP-offload GPU version on Intel GPUs. Depending on the machine it either crashes or, as in your runs, silently produces wrong exact-exchange contributions. You can see it in your OUTCARs: the total energy is positive (TOTEN = +553.9 eV in the first step, +437 eV after 15 steps, F = +369 eV), which is not physical for your 755-atom system, and the SCF energy rises again after step 8. This should be also obvious when comparing to a CPU run.
Please apply the attached patch to src/hamil.F and recompile:
Code: Select all
cd vasp.6.6.1
patch -p1 < vasp-6.6.1-pw_charge_trace_mu_acc.patch
make veryclean
make DEPS=1 -j gam
With the patch, your input (started from random orbitals, 10 electronic steps, not yet converged) gives a total energy of about −7158 eV on 8 and on 16 nodes. Please redo your HSE runs with the patched build and compare against your CPU calculation. We will also add this to the Known issues page in the wiki. We are sorry for the inconvenience.
2. Scaling beyond 8 nodes.
We see the same behavior on Aurora, which uses a different MPI library (MPICH) and has more network cards per node, so it is not specific to your cluster. With one k-point and NCORE=1, every rank has to receive all orbitals once per exact-exchange step and send its contributions back, and this communication does not shrink with more nodes. On 8 nodes the GPU work per exact-exchange step takes about 115 s, the communication about 390 s; on 16 nodes the GPU work halves, but the communication stays the same or grows. I ran a OMP_NUM_THREADS=1 debug run to force serialization of work and communication. It confirms this picture (most of the time is spent in the summation of the contributions across ranks) and it is about 25% slower than 8 threads, so please keep your current thread setup.
We are working on reducing this communication for the GPU version, but there is no input setting that fixes it right now that we are aware of. Until then:
- 8 nodes (or fewer) is the sweet spot for this system; running several calculations in parallel on 8 nodes each uses your allocation better than one job on 16 or more nodes.
- ISPIN = 1 if your system is non-magnetic (your final magnetization is zero): this halves the cost of the exact-exchange part, including the communication.
- NBANDS: 2304 bands are about 23% more than the 1873 occupied bands. Something like NBANDS = 1920 (divisible by 64 and 128) reduces both computation and communication.
We will work with Intel to find a way to make the reduction more performant across multiple nodes.
Best regards,
Alexander
vasp-6.6.1-pw_charge_trace_mu_acc.patch.zip
You do not have the required permissions to view the files attached to this post.