Skip to content

move source_base/memory.h to source_base/memory_recorder.h#7348

Merged
mohanchen merged 4 commits into
deepmodeling:developfrom
mohanchen:memory2
May 16, 2026
Merged

move source_base/memory.h to source_base/memory_recorder.h#7348
mohanchen merged 4 commits into
deepmodeling:developfrom
mohanchen:memory2

Conversation

@mohanchen
Copy link
Copy Markdown
Collaborator

move source_base/memory.h to source_base/record_memory.h

@mohanchen mohanchen requested a review from Critsium-xy May 16, 2026 06:30
@mohanchen mohanchen added the Refactor Refactor ABACUS codes label May 16, 2026
abacus_fixer added 3 commits May 16, 2026 14:32
This commit renames the memory recording module from record_memory to memory_recorder.

**File Renames:**
- source/source_base/record_memory.h → memory_recorder.h
- source/source_base/record_memory.cpp → memory_recorder.cpp

**Header File Updates (35 files):**
Updated all #include references from "source_base/record_memory.h" to "source_base/memory_recorder.h" in:
- source_pw: sto_wf.cpp, sto_elecond.cpp, vnl_pw.cpp, structure_factor.cpp
- source_lcao: biggrid_info.cpp, gint_info.cpp, dftu.cpp, hcontainer.cpp, dspin_lcao.cpp,
               hamilt_lcao.cpp, FORCE_gamma.cpp, FORCE_k.cpp, edm.cpp, klist_1.cpp
- source_hsolver: hsolver_lcao.cpp, parallel_k2d.cpp, diago_cg.cpp
- source_io: cal_test.cpp, write_wfc_nao.cpp
- source_estate: density_matrix.cpp, density_matrix_io.cpp, potential_new.cpp, charge.cpp
- source_esolver: esolver_sdft_pw.cpp, esolver_of_tool.cpp
- source_basis: pw_basis_k.cpp, two_center_bundle.cpp, ORB_gaunt_table.cpp
- source_base: memory_recorder.cpp, memory_test.cpp, sph_bessel_recursive-d2.cpp,
               memory_op.cpp, memory_op.cu
- source_psi: psi_prepare.cpp
- source_main: driver.cpp

**CMakeLists.txt Updates (11 files):**
Updated all source file references from record_memory.cpp to memory_recorder.cpp in:
- source_relax/test/CMakeLists.txt
- source_pw/module_pwdft/test/CMakeLists.txt
- source_md/test/CMakeLists.txt
- source_io/test/CMakeLists.txt
- source_hamilt/module_xc/test/CMakeLists.txt
- source_cell/test/CMakeLists.txt
- source_basis/module_pw/kernels/test/CMakeLists.txt
- source_basis/module_pw/test/CMakeLists.txt
- source_basis/module_ao/test/CMakeLists.txt
- source_base/test/CMakeLists.txt
- source_base/test_parallel/CMakeLists.txt
- source_base/CMakeLists.txt

**Makefile Updates (1 file):**
- source_lcao/module_deepks/test/Makefile.Objects: Updated record_memory.o to memory_recorder.o

This change improves the naming consistency and clarity of the memory recording module.
@mohanchen mohanchen changed the title move source_base/memory.h to source_base/record_memory.h move source_base/memory.h to source_base/memory_recorder.h May 16, 2026
Copy link
Copy Markdown
Collaborator

@Critsium-xy Critsium-xy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good change in filename. This makes the file's function clearer.

@mohanchen mohanchen merged commit 6793a34 into deepmodeling:develop May 16, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Refactor Refactor ABACUS codes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants