gpu4pyscf icon indicating copy to clipboard operation
gpu4pyscf copied to clipboard

"CUDA Error of work_lda: named symbol not found" error after gpu4pyscf 1.3.1 update

Open JeongheonSeok opened this issue 9 months ago • 4 comments

After updating gpu4pyscf to version 1.3.1 (and updating other dependent packages using pip), I get an error like the title. I'm getting the same error even when I create a new environment and install only gpu4pyscf, cutensor and dependency packages.

Even a very simple example like below is giving me the error right away. Can you give me some advice on how to fix it?

import pyscf
from gpu4pyscf.dft import rks

atom = '''
O       0.0000000000    -0.0000000000     0.1174000000
H      -0.7570000000    -0.0000000000    -0.4696000000
H       0.7570000000     0.0000000000    -0.4696000000
'''
mol = pyscf.M(atom=atom, basis='def2-tzvpp')
mf = rks.RKS(mol, xc='b3lyp').density_fit()
energy = mf.kernel()

Error

CUDA Error of work_lda: named symbol not found

+) above error occurs at (gpu4pyscf-cuda12x==1.3.1, gpu4pyscf-libxc-cuda12x==0.6), (gpu4pyscf-cuda12x==1.3.0, gpu4pyscf-libxc-cuda12x==0.5). (gpu4pyscf-cuda12x==1.3.1, gpu4pyscf-libxc-cuda12x==0.5), (gpu4pyscf-cuda12x==1.3.0, gpu4pyscf-libxc-cuda12x==0.5) are okay. I think there might be a problem with gpu4pyscf-libxc-cuda12x==0.6 version.

JeongheonSeok avatar Mar 05 '25 04:03 JeongheonSeok

Yes, it is a bug introduced by gpu4pyscf-libxc-cuda12x==0.6. You can revert its version to 0.5 at this point. I am fixing the issue right now.

wxj6000 avatar Mar 05 '25 04:03 wxj6000

Yes, thank you for checking.

JeongheonSeok avatar Mar 05 '25 05:03 JeongheonSeok

@JeongheonSeok The issue has been fixed. You can upgrade libxc via pip3 install gpu4pyscf-libxc-cuda12x --upgrade for the fix. It will take a few mins for the first run, as it needs to compile the binary for the corresponding GPU. You can also keep gpu4pyscf-libxc-cuda12x==0.5 for the same using experience as before.

wxj6000 avatar Mar 05 '25 08:03 wxj6000

Yes, I checked. Thank you for your kind reply and correction!

JeongheonSeok avatar Mar 06 '25 04:03 JeongheonSeok

The precompiled pip wheels only include ptxas code for sm-70, 80, and 90. You might need to compile additional sm archs for your system from source code.

sunqm avatar Sep 30 '25 16:09 sunqm