Skip to content
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

Use gint_kernel_vlocal() function with an incorrect list of arguments #4551

Closed
LiuXiaohui123321 opened this issue Jul 3, 2024 · 3 comments · Fixed by #4597
Closed

Use gint_kernel_vlocal() function with an incorrect list of arguments #4551

LiuXiaohui123321 opened this issue Jul 3, 2024 · 3 comments · Fixed by #4597
Assignees
Labels
GPU & DCU & HPC GPU and DCU and HPC related any issues

Comments

@LiuXiaohui123321
Copy link
Collaborator

In the code, the gint_kernel_vlocal() function is called with arguments list like this,

this->gint_kernel_vlocal(na_grid, grid_index, delta_r, vldr3, LD_pool, ucell, nullptr);

but the function is defined with arguments list here,

void gint_kernel_vlocal(const int na_grid,
const int grid_index,
const double delta_r,
double* vldr3,
const int LD_pool,
double* pvpR_reduced,
const UnitCell& ucell,
hamilt::HContainer<double>* hR = nullptr);

As we see, the arguments list above doesn't match the one here, and it looks like it's lack of the pvpR_reduced item.

There are several other similar problems in the code,

@WHUweiqingzhou
Copy link
Collaborator

@dzzz2001 could you have a look?

@dzzz2001
Copy link
Collaborator

dzzz2001 commented Jul 5, 2024

It appears that this error was introduced after adding the unitcell parameter in the gint_kernel_vlocal function. The correct order of parameters when calling this function should place nullptr before ucell. Since ABACUS currently lacks compilation tests for non-OpenMP versions, this error was not caught by the integration tests. This is an error introduced by PR #4164, @A-006 you should fix it.

@mohanchen mohanchen added the GPU & DCU & HPC GPU and DCU and HPC related any issues label Jul 7, 2024
@A-006
Copy link
Collaborator

A-006 commented Jul 7, 2024

This issue has been resolved in the #4566 . If there are no problems, this issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GPU & DCU & HPC GPU and DCU and HPC related any issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants