Skip to content

Commit d5fab4d

Browse files
authored
Merge branch 'develop' into dmr
2 parents 9c57cbe + 8b24258 commit d5fab4d

File tree

314 files changed

+17754
-46995
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

314 files changed

+17754
-46995
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@ time.json
2121
*.pyc
2222
__pycache__
2323
abacus.json
24-
*.npy
24+
*.npy
25+
toolchain/install/
26+
toolchain/abacus_env.sh

CMakeLists.txt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,9 +352,19 @@ if(USE_CUDA)
352352
endif()
353353
if (ENABLE_CUSOLVERMP)
354354
add_compile_definitions(__CUSOLVERMP)
355+
find_library(CAL_LIBRARY
356+
NAMES cal
357+
PATHS ${CAL_CUSOLVERMP_PATH}
358+
NO_DEFAULT_PATH
359+
)
360+
find_library(CUSOLVERMP_LIBRARY
361+
NAMES cusolverMp
362+
PATHS ${CAL_CUSOLVERMP_PATH}
363+
NO_DEFAULT_PATH
364+
)
355365
target_link_libraries(${ABACUS_BIN_NAME}
356-
cal
357-
cusolverMp
366+
${CAL_LIBRARY}
367+
${CUSOLVERMP_LIBRARY}
358368
)
359369
endif()
360370
endif()

Dockerfile.intel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ RUN source /opt/intel/oneapi/setvars.sh && \
4444
ln -s /usr/local/include/elpa_openmp-$ELPA_VER/elpa /usr/local/include/ && \
4545
cd /tmp && rm -rf elpa-$ELPA_VER
4646

47+
RUN cd /tmp && git clone https://github.com/Tencent/rapidjson.git && cp -r rapidjson/include/rapidjson /usr/include/ \
48+
&& rm -rf rapidjson
49+
4750
RUN wget https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.0.0%2Bcpu.zip \
4851
--no-check-certificate --quiet -O libtorch.zip && \
4952
unzip -q libtorch.zip -d /opt && rm libtorch.zip

docs/advanced/input_files/input-main.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@
153153
- [out\_mat\_t](#out_mat_t)
154154
- [out\_mat\_dh](#out_mat_dh)
155155
- [out\_mat\_xc](#out_mat_xc)
156+
- [out\_mat\_xc2](#out_mat_xc2)
156157
- [out\_eband\_terms](#out_eband_terms)
157158
- [out\_hr\_npz/out\_dm\_npz](#out_hr_npzout_dm_npz)
158159
- [dm\_to\_rho](#dm_to_rho)
@@ -1799,6 +1800,13 @@ These variables are used to control the output of properties.
17991800
The band (KS orbital) energy for each (k-point, spin, band) will be printed in the file `OUT.${suffix}/vxc_out.dat`. If EXX is calculated, the local and EXX part of band energy will also be printed in `OUT.${suffix}/vxc_local_out.dat`and `OUT.${suffix}/vxc_exx_out.dat`, respectively. All the `vxc*_out.dat` files contains 3 integers (nk, nspin, nband) followed by nk\*nspin\*nband lines of energy Hartree and eV.
18001801
- **Default**: False
18011802

1803+
### out_mat_xc2
1804+
1805+
- **Type**: Boolean
1806+
- **Availability**: Numerical atomic orbital (NAO) basis
1807+
- **Description**: Whether to print the exchange-correlation matrices in **numerical orbital representation** (unit: Ry): $\braket{\phi_i|V_\text{xc}^\text{(semi-)local}+V_\text{exx}+V_\text{DFTU}|\phi_j}(\mathbf{R})$ in CSR format (the same format as [out_mat_hs2](../elec_properties/hs_matrix.md#out_mat_hs2)) in the directory `OUT.${suffix}`. (Note that currently DeePKS term is not included. ) The files are named `Vxc_R_spin$s`.
1808+
- **Default**: False
1809+
18021810
### out_eband_terms
18031811

18041812
- **Type**: Boolean

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
ABACUS Documentation
88
=================================================
99

10-
ABACUS (**A**tomic-orbital **B**ased **A**b-initio **C**omputation at **US**tc) is
10+
ABACUS (Atomic-orbital Based Ab-initio Computation at UStc) is
1111
an open-source computer code package based on density functional
1212
theory (DFT). The package utilizes both plane wave and numerical
1313
atomic basis sets with the usage of pseudopotentials

docs/quick_start/easy_install.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Here, 'build' is the path for building ABACUS; and '-D' is used for setting up s
106106
- `CMAKE_INSTALL_PREFIX`: the path of ABACUS binary to install; `/usr/local/bin/abacus` by default
107107
- Compilers
108108
- `CMAKE_CXX_COMPILER`: C++ compiler; usually `g++`(GNU C++ compiler) or `icpx`(Intel C++ compiler). Can also set from environment variable `CXX`. It is OK to use MPI compiler here.
109-
- `MPI_CXX_COMPILER`: MPI wrapper for C++ compiler; usually `mpicxx` or `mpiicpc`(for Intel MPI).
109+
- `MPI_CXX_COMPILER`: MPI wrapper for C++ compiler; usually `mpicxx` or `mpiicpx`(for Intel toolkits) or `mpiicpc`(for classic Intel Compiler Classic MPI before 2024.0).
110110
- Requirements: Unless indicated, CMake will try to find under default paths.
111111
- `MKLROOT`: If environment variable `MKLROOT` exists, `cmake` will take MKL as a preference, i.e. not using `LAPACK`, `ScaLAPACK` and `FFTW`. To disable MKL, unset environment variable `MKLROOT`, or pass `-DMKLROOT=OFF` to `cmake`.
112112
- `LAPACK_DIR`: Path to OpenBLAS library `libopenblas.so`(including BLAS and LAPACK)
@@ -136,7 +136,7 @@ Here, 'build' is the path for building ABACUS; and '-D' is used for setting up s
136136
Here is an example:
137137

138138
```bash
139-
CXX=mpiicpc cmake -B build -DCMAKE_INSTALL_PREFIX=~/abacus -DELPA_DIR=~/elpa-2016.05.004/build -DCEREAL_INCLUDE_DIR=~/cereal/include
139+
CXX=mpiicpx cmake -B build -DCMAKE_INSTALL_PREFIX=~/abacus -DELPA_DIR=~/elpa-2025.01.001/build -DCEREAL_INCLUDE_DIR=~/cereal/include
140140
```
141141

142142
## Build and Install

docs/quick_start/output.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ For a complete list of input parameters, please consult this [instruction](../ad
1414

1515
`running_scf.log` contains information on nearly all function calls made during the execution of ABACUS.
1616

17-
## *KPT*
17+
## *KPT.info*
1818

1919
This file contains the information of all generated k-points, as well as the list of k-points actually used for calculations after considering symmetry.
2020

@@ -39,4 +39,4 @@ ABACUS generates a `.cif` format structure file based on the input file `STRU`,
3939

4040
## *warning.log*
4141

42-
The file contains all the warning messages generated during the ABACUS run.
42+
The file contains all the warning messages generated during the ABACUS run.

python/pyabacus/CONTRIBUTING.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,10 @@ list(APPEND _diago
190190
${HSOLVER_PATH}/diag_const_nums.cpp
191191
${HSOLVER_PATH}/diago_iter_assist.cpp
192192
${HSOLVER_PATH}/kernels/dngvd_op.cpp
193+
${HSOLVER_PATH}/kernels/bpcg_kernel_op.cpp
193194
${BASE_PATH}/kernels/math_kernel_op.cpp
194-
${BASE_PATH}/kernels/math_op.cpp
195+
${BASE_PATH}/kernels/math_kernel_op_vec.cpp
196+
${BASE_PATH}/kernels/math_ylm_op.cpp
195197
${BASE_PATH}/module_device/device.cpp
196198
${BASE_PATH}/module_device/memory_op.cpp
197199
${PSI_PATH}/psi.cpp

python/pyabacus/src/ModuleBase/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
list(APPEND pymodule_base
22
${PROJECT_SOURCE_DIR}/src/ModuleBase/py_base_math.cpp
3-
${BASE_PATH}/kernels/math_op.cpp
3+
${BASE_PATH}/kernels/math_ylm_op.cpp
44
${BASE_PATH}/kernels/math_kernel_op.cpp
5+
${BASE_PATH}/kernels/math_kernel_op_vec.cpp
56
${BASE_PATH}/module_device/memory_op.cpp
67
${BASE_PATH}/module_device/device.cpp
78
)

python/pyabacus/src/ModuleNAO/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ list(APPEND _naos
1313
${NAO_PATH}/two_center_integrator.cpp
1414
${NAO_PATH}/two_center_table.cpp
1515
# dependency
16-
${ABACUS_SOURCE_DIR}/module_base/kernels/math_op.cpp
16+
${ABACUS_SOURCE_DIR}/module_base/kernels/math_ylm_op.cpp
1717
${ABACUS_SOURCE_DIR}/module_base/kernels/math_kernel_op.cpp
18+
${ABACUS_SOURCE_DIR}/module_base/kernels/math_kernel_op_vec.cpp
1819
# ${ABACUS_SOURCE_DIR}/module_psi/kernels/psi_memory_op.cpp
1920
${ABACUS_SOURCE_DIR}/module_base/module_device/memory_op.cpp
2021
${ABACUS_SOURCE_DIR}/module_base/module_device/device.cpp

0 commit comments

Comments
 (0)