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

A memory leak is suspected because of the continuous memory increase during cell-relax #4215

Closed
16 tasks
ieiue opened this issue May 23, 2024 · 5 comments
Closed
16 tasks
Assignees
Labels
GPU & DCU & HPC GPU and DCU and HPC related any issues

Comments

@ieiue
Copy link
Collaborator

ieiue commented May 23, 2024

Describe the bug

When making a cell-relax calculation of Fe_128H, the memory is keeping increasing. So a memory leak is suspected.
e4043da336c2681b9b74d36d2c92b34
The X axis is time (10s, e.g. the last horizontal value is 4852*10=48520 s ), and the Y axis is memory (GB). This calculation consumes too much memory to finish.

Expected behavior

No response

To Reproduce

Fe128H_10au_TZDP.zip

Environment

ABACUS v.3.6.3

Additional Context

No response

Task list for Issue attackers (only for developers)

  • Verify the issue is not a duplicate.
  • Describe the bug.
  • Steps to reproduce.
  • Expected behavior.
  • Error message.
  • Environment details.
  • Additional context.
  • Assign a priority level (low, medium, high, urgent).
  • Assign the issue to a team member.
  • Label the issue with relevant tags.
  • Identify possible related issues.
  • Create a unit test or automated test to reproduce the bug (if applicable).
  • Fix the bug.
  • Test the fix.
  • Update documentation (if necessary).
  • Close the issue and inform the reporter (if applicable).
@dyzheng
Copy link
Collaborator

dyzheng commented May 23, 2024

I repeat your case with "device cpu" , and no memory leak is detected:
image

@dzzz2001
Copy link
Collaborator

dzzz2001 commented May 23, 2024

After investigation, it appears that the memory leak is occurring in the cal_gint_force function. We will work on fixing this bug.
img_v3_02b5_1aaaecae-cdc2-4743-b3be-acdb102ff9dg

@mohanchen mohanchen added the GPU & DCU & HPC GPU and DCU and HPC related any issues label May 23, 2024
@dzzz2001
Copy link
Collaborator

PR #4200 has fixed the memory leak in cal_gint_force, you can retry this calculation.

@WHUweiqingzhou
Copy link
Collaborator

@ieiue has this issue solved after PR #4200?

@WHUweiqingzhou
Copy link
Collaborator

fixed by #4200

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

No branches or pull requests

5 participants