Skip to content

[Bug] [GPU] Segmentation fault when running USPP PW examples (003_Fe, 008_NaCl) #7610

Description

@chengleizheng

Description

When running ABACUS GPU build on the PW test examples under tests/01_PW, two USPP-related cases crash with segmentation fault:

  • 003_PW_UPF100_USPP_Fe
  • 008_PW_UPF201_USPP_NaCl

Both cases reach the self-consistent calculation stage and then terminate with:

Segmentation fault (core dumped)

Environment:

  • ABACUS version:v3.11.0-beta.1
  • GPU: NVIDIA GeForce RTX 4060 Laptop GPU
  • CPU: Intel(R) Core(TM) i9-14900HX

Reproducing cases

003_PW_UPF100_USPP_Fe

The run reaches:

SELF-CONSISTENT:
================================================================
Segmentation fault (core dumped)

008_PW_UPF201_USPP_NaCl

The run reaches:

SELF-CONSISTENT:
================================================================
Segmentation fault (core dumped)

Expected behavior

The GPU run should finish normally, or at least report a controlled error message instead of crashing with segmentation fault.

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions