Skip to content

GPU kernels for PBC overlap integrals #456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions gpu4pyscf/lib/pbc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} --ptxas-options=-v")# -maxrregcount=12
add_library(pbc SHARED
pbc_driver.cu ft_ao.cu unrolled_ft_ao.cu ft_ao_bdiv.cu
fill_int3c2e.cu unrolled_int3c2e.cu fill_int2c2e.cu
overlap.cu
estimator.cu
rys_roots_dat.cu
nr_eval_gto.cu
Expand Down
2 changes: 1 addition & 1 deletion gpu4pyscf/lib/pbc/fill_int2c2e.cu
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void pbc_int2c2e_kernel(double *out, PBCIntEnvVars envs, PBCInt2c2eBounds bounds
double *env = envs.env;
double *img_coords = envs.img_coords;

int gout_stride = bounds.gout_stride_lookup[lj*L_AUX1+li];
int gout_stride = bounds.gout_stride_lookup[li*L_AUX1+lj];
int nsp_per_block = THREADS / gout_stride;
int sp_id = thread_id % nsp_per_block;
int gout_id = thread_id / nsp_per_block;
Expand Down
Loading