vasp.6.6.1 and Ozaki-II and 2M algorithms

Queries about input and output files, running specific calculations, etc.


Moderators: Moderator, Global Moderator

Post Reply
Message
Author
khoang
Newbie
Newbie
Posts: 7
Joined: Tue Nov 12, 2019 10:05 pm

vasp.6.6.1 and Ozaki-II and 2M algorithms

#1 Post by khoang » Thu Nov 19, 2026 6:49 pm

Dear VASP Developers,

I'm wondering if vasp.6.6.1 can take advantage of the Ozaki-II and 2M algorithms in CUDA Toolkit 13.4.2. See: https://developer.nvidia.com/blog/faste ... ia-cublas/ Has anyone done some benchmarking similar to that for BerkeleyGW discussed in the article?

Thanks.


ahampel
Global Moderator
Global Moderator
Posts: 213
Joined: Tue Feb 16, 2016 11:41 am

Re: vasp.6.6.1 and Ozaki-II and 2M algorithms

#2 Post by ahampel » Fri Nov 20, 2026 7:19 pm

Hi khoang,

thank you for reaching out to us on the VASP developer forum. In the current VASP version there is not yet anything tested to accelerate consumer GPU hardware via emulation strategies to use the tensor cores more efficiently. We are currently testing and developing for next VASP releases to improve performance for consumer GPUs (anything with capped FP64 performance). We are well aware of the performance boost Ozaki and 2M schemes in cublas could give and testing this.

However, since cuda 13.x you should be able to set something like this:

Code: Select all

export CUBLAS_EMULATE_DOUBLE_PRECISION=1                 # FP64 fixed-point emulation on every handle
export CUBLAS_EMULATION_STRATEGY=eager                   # or performant (the default)
export CUBLAS_FIXEDPOINT_EMULATION_MANTISSA_BIT_COUNT=48 # precision dial

to force all GEMMs through the cublas Ozaki layers. As you point out only cuda 13.4.x with cublas 13.8 has Ozaki-II and 2M support. But the env vars also work with older CUDA versions 13.x and will use Ozaki-I . But be very careful with testing this, since all GEMMs will be routed through it. With 48 mantissa bit emulation you should recover double precision or close to. Lowering this could result in instabilities.

I tried this on an RTX 6000 card with quite some success regarding GEMM performance but the whole VASP code only holds a limited amount of GEMMs in the standard electronic minimizers. You can compile VASP with -DPROFILING and check in the resulting OUTCAR for gemm profiling timers and compare with and without emulation.

Best,
Alex


Post Reply