cuEST VRAM scaling problem

Greetings,

I’m wiring cuEST with gpu4pyscf(1.8.0), and i noticed the VRAM growth is beyond AO^3 for many cases.

For an AO=4488 PBE/def2-dzvp case, gpu4pyscf is running <9GB VRAM, but cuEST got OOM on 1 A100 so I couldn’t get a reasonable measurment.

I’m wondering if its my wiring issue or cuEST is requiring more VRAM? If you have any example for using cuEST with pyscf, that would be wonderful.

Best.

Hi, @wuuboyu. Thank you for your interest in cuEST. It’s not clear which algorithm(s) you are targeting, or which variant gpu4pyscf is using in this case. For PBE, you don’t need HF exchange and I’m guessing you are using the in-core density fitting path? If so, you can try the direct DF algorithm; that gives the same result with a much lower memory footprint. You can also avoid density fitting entirely using DirectJ. If you end up needing exchange, the new compensated Grid-K algorithm is a great way to get performance at scale. An overview of the various J and K solvers can be found here - hopefully it will help you choose the right solution for your needs.

Best regards,

Andy.