Skip to content

Commit

Permalink
use grid_aligned in gpu4pyscf.__config__
Browse files Browse the repository at this point in the history
  • Loading branch information
wxj6000 committed Dec 27, 2023
1 parent b58f047 commit 0022e56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion examples/dft_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
e_tot = mf_df.kernel()
scf_time = time.time() - start_time
print(f'compute time for energy: {scf_time:.3f} s')
exit()

start_time = time.time()
g = mf_df.nuc_grad_method()
Expand Down
4 changes: 2 additions & 2 deletions gpu4pyscf/dft/gen_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@
from cupyx.scipy.spatial.distance import cdist
from gpu4pyscf.dft import radi
from gpu4pyscf.lib.cupy_helper import load_library

from gpu4pyscf import __config__ as __gpu4pyscf_config__
libdft = lib.load_library('libdft')
libgdft = load_library('libgdft')

from pyscf.dft.gen_grid import GROUP_BOUNDARY_PENALTY, NELEC_ERROR_TOL, LEBEDEV_ORDER, LEBEDEV_NGRID

GROUP_BOX_SIZE = 3.0
ALIGNMENT_UNIT = 128
ALIGNMENT_UNIT = getattr(__gpu4pyscf_config__, 'grid_aligned', 128)
# SG0
# S. Chien and P. Gill, J. Comput. Chem. 27 (2006) 730-739.

Expand Down

0 comments on commit 0022e56

Please sign in to comment.