Skip to content

“std::length_error” when calculating overlap matrix of huge structure #5978

@XYZhang1999

Description

@XYZhang1999

Details

I tried to obtain the overlap matrix of a twisted 2D system with an size of 9604 atoms using cpu, but an error message returned:

OMP_NUM_THREADS=8 mpirun -n 4 abacus

                          ABACUS v3.9.0

           Atomic-orbital Based Ab-initio Computation at UStc                    

                 Website: http://abacus.ustc.edu.cn/                             
           Documentation: https://abacus.deepmodeling.com/                       
              Repository: https://github.com/abacusmodeling/abacus-develop       
                          https://github.com/deepmodeling/abacus-develop         
                  Commit: a2d9092 (Sat Dec 28 03:55:16 2024 +0800)

Wed Mar 5 19:15:30 2025
MAKE THE DIR : OUT.ABACUS/
RUNNING WITH DEVICE : CPU / Intel(R) Xeon(R) Gold 5218 CPU @ 2.30GHz
dft_functional readin is: hse
dft_functional in pseudopot file is: PBE
Please make sure this is what you need
DONE(189.028 SEC) : SYMMETRY
DONE(189.64 SEC) : INIT K-POINTS
terminate called after throwing an instance of 'std::length_error'
terminate called after throwing an instance of 'std::length_error'
what(): vector::_M_default_append what(): vector::_M_default_append

terminate called after throwing an instance of 'std::length_error'
what(): vector::_M_default_append
terminate called after throwing an instance of 'std::length_error'
what(): vector::_M_default_append

===================================================================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= PID 156859 RUNNING AT cn1604
= EXIT CODE: 134
= CLEANING UP REMAINING PROCESSES
= YOU CAN IGNORE THE BELOW CLEANUP MESSAGES

I tried to use only 1 process again but this error repeated. With the same INPUT and KPT file, after reduction of the atom number from 9604 to 4604, the error disappeared and the overlap matrix calculation successed. So this error should related to the system size. How can I calculate structures with large size?
The abacus version is 3.9.0, and it is run at CenOS 7 system with 500G memory. INPUT, KPT and STRU are attched.

InputFiles.zip

Have you read FAQ on the online manual http://abacus.deepmodeling.com/en/latest/community/faq.html

  • Yes, I have read the FAQ part on online manual.

Task list for Issue attackers (only for developers)

  • Understand the problem or question described by the user.
  • Check if the issue is a known problem or has been addressed in the documentation.
  • Test the issue or problem on a similar system or environment, if possible.
  • Identify the root cause or provide clarification on the user's question.
  • Provide a step-by-step guide, including any necessary resources, to resolve the issue or answer the question.
  • If the issue is related to documentation, update the documentation to prevent future confusion (optional).
  • If the issue is related to code, consider implementing a fix or improvement (optional).
  • Review and incorporate any relevant feedback from users or developers.
  • Ensure the user's issue is resolved or their question is answered and close the ticket.

Metadata

Metadata

Assignees

Labels

QuestionsRaise your quesiton! We will answer it.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions