question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pbc with multigrid DF benchmark

See original GitHub issue

Hi PySCF team,

I am attempting to run some larger-scale DFT calculations within the pbc/df module. Specifically, I am hoping to reproduce some benchmarks in the 2020 paper (https://aip.scitation.org/doi/pdf/10.1063/5.0006074) Table II. It appears that pyscf/examples/2-benchmark/fock_multigrid.py sets up this benchmark. However, I ran into a few problems/questions:

  1. For the nao = 2560 water box, using LDA and 96 threads @ 2.00GHz I get a Fock matrix build time of 100s (see line 546 of attached output) which seems quite off from the paper result (20 sec with 32 threads (?) @ 2.3 GHz).

  2. Attempting to run a full DFT calculation, I run out of memory (tries to allocate a 470gb array! see end of attached file).

  3. In Table II, it is explained that “Integral screening and lattice summation cutoff were controlled by an overall threshold of 10^−6 a.u.”. I assume setting precision = 1e-6 does exactly this? Or do I need to set the integral screening separately?

For reproduceability, I ran the calculation within the latest Docker image (pyscf/pyscf:latest).

multigrid_test.txt

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jamesETsmithcommented, Jul 30, 2021

As you go to a larger number of threads sometimes the overhead cost of parallelization can slow things down especially as you get to more than 80 threads. A lot of factors, like the problem size and CPU type, can affect this. If you’re interesting in finding the most performant settings on your hardware, I’d suggest trying several different values for the number of threads to find what’s best for you.

0reactions
pedersorcommented, Aug 2, 2021

Thanks James and Xing! I’ll try out the fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DL_MG: A Parallel Multigrid Poisson and Poisson–Boltzmann ...
It is tempting to compare the solver times in the vacuum PBC (Table 1) and solvation OBC (Table 2) calculations in light of...
Read more >
A parallel multigrid solver for viscous flows on anisotropic ...
This paper presents an efficient parallel multigrid solver for speeding up the computation of a 3-D model that treats the flow of a...
Read more >
Fast and Accurate Finite-Element Multigrid Solvers for PDE ...
CPU-based code) and the local speedup (which can be measured in local solver benchmarks, see. Section 1.2.3), and show that the predicted values...
Read more >
DL_MG: A Parallel Multigrid Poisson and Poisson-Boltzmann ...
Our solver is based on the multigrid approach and uses an iterative high-order defect correction method to improve the accuracy of solutions.
Read more >
arXiv:1804.10060v2 [cs.CE] 15 Nov 2018
Keywords: finite element analysis, multigrid, parallel computing, ... where σ is the stress tensor, f is a prescribed body force, pbc is a ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found