Author Topic: Change in "number of processors per kpoint" doesn't seem to be applied.  (Read 3335 times)

0 Members and 1 Guest are viewing this topic.

Offline Choongman Moon

  • Regular QuantumATK user
  • **
  • Posts: 7
  • Country: kr
  • Reputation: 0
    • View Profile
Dear all,

I'm a quite new to VNL-ATK and I'm trying to optimize the structure of graphene.
I changed "number of processor per kpoint" from default value to 4 (using "scriptor" or "editor") and checked log file after calculation.
But in the log file, I got the warning message like below,

+------------------------------------------------------------------------------+
| DiagonalizationSolver parallelization report.                                |
+------------------------------------------------------------------------------+
| Total number of processes: 4                                                 |
| Total number of k-points: 85                                                 |
| Processes per k-point: 1                                                     |
| Number of process groups: 4                                                  |
+------------------------------------------------------------------------------+
+------------------------------------------------------------------------------+
| WARNING: Sub-optimal distribution of processes over k-points.                |
| For optimal performance make sure the number of processes is                 |
| a multiple of the number of k-points times processes_per_kpoint.             |
| 3 process(es) have fewer k-points assigned than others                       |
| and will be partially idle.                                                  |
+------------------------------------------------------------------------------+
| WARNING: Sub-optimal process distribution for the DiagonalizationSolver.     |
| Number of processes per k-point has been adapted for better performance.     |
| For an optimal process distribution, use 4 MPI process(es),                  |
| and set processes_per_kpoint=1                                               |
+------------------------------------------------------------------------------+

Calculation is finished anyway, but the changed value of "number of processors per kpoint" is not reflected.
Is this a bug or am I making mistake?
Any help or comments would be greatly appreciated.

Offline Ulrik G. Vej-Hansen

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 426
  • Country: dk
  • Reputation: 9
    • View Profile
I would say you are making a mistake. When you have 85 k-points and less than 86 MPI processes, it is much more efficient to parallelize over k-points. That is why the program actually overrides your choice in this case. You need a much bigger system for more than one process per k-point to make sense.

Offline Choongman Moon

  • Regular QuantumATK user
  • **
  • Posts: 7
  • Country: kr
  • Reputation: 0
    • View Profile
Thank you for your reply
It really helps.