Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
730 commits
Select commit Hold shift + click to select a range
eb68c83
unittest : update unittests for module_md
YuLiu98 Jan 11, 2022
46e727d
Replace std::cout in input_conv.cpp with ModuleBase::WARNING.
ddhhss Jan 11, 2022
2514821
add annotation for hamilt_pw_hip.h
ddhhss Jan 11, 2022
5d6ed7f
fix cudaFree in wf_igk.cpp
ddhhss Jan 11, 2022
a7b9305
Remove redundant comments in diago_cg.cu, diago_cg_hip.cpp
ddhhss Jan 11, 2022
394d49f
modify ROCm part of CmakeLists.txt
ddhhss Jan 11, 2022
5792bb7
Add namespace CudaCheck and HipCheck.
ddhhss Jan 11, 2022
612c426
add note for support to HIP of cmake.
ddhhss Jan 11, 2022
66774f4
feature: add operator "==" and "!=" and delect function "Compare" in …
pxlxingliang Jan 11, 2022
fec12d9
Remove redundant comments in use_fft_kernel.cu
ddhhss Jan 12, 2022
a65d797
add comments for cmake-ROCm.
ddhhss Jan 12, 2022
fbcc8f9
format : update indentation in unit tests of module_md
YuLiu98 Jan 12, 2022
ccce0fa
test: fix the type error
pxlxingliang Jan 13, 2022
b2ebdc8
Merge pull request #626 from pxlxingliang/performance
caic99 Jan 13, 2022
fb555a7
test: add integrate example about nbpsline in lcao basis, and modify …
pxlxingliang Jan 13, 2022
2eb52af
Merge pull request #633 from pxlxingliang/integrate
dyzheng Jan 13, 2022
e5560f5
format : put the function verlet->setup() into SetUp() in unit tests
YuLiu98 Jan 13, 2022
e07f9d7
Merge pull request #622 from deepmodeling/cuda11
dyzheng Jan 14, 2022
4cc4925
refactor : gather input parameters for GlobalC::pw
dyzheng Jan 14, 2022
1b1a06e
unittest : remove the fixed seed in unit tests of module_md
YuLiu98 Jan 14, 2022
e873ca1
Merge branch 'develop' of https://github.com/deepmodeling/abacus-deve…
YuLiu98 Jan 14, 2022
5c32830
fix and refactor : gathered INPUT for GlobalC::ucell, fixed angle1 an…
dyzheng Jan 14, 2022
f8641f9
gather GlobalC::sto_wf in INPUT_conv.cpp
dyzheng Jan 15, 2022
145cc2a
Add: integral test script output running log on fatal errors.
caic99 Jan 17, 2022
d4aac52
Fix: install g++ for address sanitizer.
caic99 Jan 17, 2022
3d270ba
Fix:Move files.
caic99 Jan 17, 2022
f735ec6
Test: fix code static analysis not working.
caic99 Jan 17, 2022
c898b6d
Merge pull request #639 from caic99/integral
dyzheng Jan 17, 2022
15ff336
Merge pull request #640 from caic99/ci
dyzheng Jan 17, 2022
3b79c35
Merge pull request #641 from caic99/clang
dyzheng Jan 17, 2022
d612538
Test: Fix sanitizer linking misuse.
caic99 Jan 17, 2022
a1c2ea7
Fix: Typo in `CMakeLists`
caic99 Jan 17, 2022
b6ceea0
Fix: typo of redundant braket.
caic99 Jan 17, 2022
661b713
Merge pull request #642 from caic99/ci
dyzheng Jan 17, 2022
26104a2
Merge pull request #636 from dyzheng/develop
dyzheng Jan 17, 2022
fc4a053
refactor : remove realarray.h in tools.h
dyzheng Jan 17, 2022
9671c57
refactor : remove intarray.h in tools.h
dyzheng Jan 17, 2022
c16156e
refactor : remove complexarray.h in tools.h
dyzheng Jan 17, 2022
c841b8a
refactor : remove complexmatrix.h in tools.h
dyzheng Jan 17, 2022
92dbcfe
Merge branch 'develop' of https://github.com.cnpmjs.org/deepmodeling/…
dyzheng Jan 17, 2022
6b7084b
refactor : remove lapack_connector.h in tools.h
dyzheng Jan 17, 2022
f431928
refactor : remove mathzone.h in tools.h
dyzheng Jan 17, 2022
61d632e
refactor : remove mathzone_add1.h in tools.h
dyzheng Jan 17, 2022
7243864
refactor : remove export.h in tools.h
dyzheng Jan 17, 2022
a5a0ce2
refactor : remove global_file.h in tools.h
dyzheng Jan 17, 2022
aa12d86
refactor : remove vector3.h in tools.h
dyzheng Jan 17, 2022
61824f1
refactor : remove matrix3.h in tools.h
dyzheng Jan 18, 2022
569ad7f
refactor : remove matrix.h in tools.h
dyzheng Jan 18, 2022
bd70ded
refactor : Adjusting dependencies for parallel_commom.h, removed tools.h
dyzheng Jan 18, 2022
6762051
Update test command for dynamic analysis.
caic99 Jan 18, 2022
c57dff8
refactor : remove sstream from tools.h
dyzheng Jan 18, 2022
4a6f795
refactor : remove iostream from tools.h
dyzheng Jan 18, 2022
7a15a65
refactor : remove iomanip from tools.h
dyzheng Jan 18, 2022
881cd1f
refactor : remove fstream from tools.h
dyzheng Jan 18, 2022
09eab58
refactor : remove string from tools.h
dyzheng Jan 18, 2022
afadf07
refactor : remove vector from tools.h
dyzheng Jan 18, 2022
127f4bb
refactor : remove cmath from tools.h
dyzheng Jan 18, 2022
bb80433
refactor : remove new from tools.h
dyzheng Jan 18, 2022
cc4d466
refactor : remove cassert from tools.h
dyzheng Jan 18, 2022
400cd5e
refactor : remove cstdlib from tools.h
dyzheng Jan 18, 2022
a8677de
refactor : remove using namespace std; from tools.h
dyzheng Jan 18, 2022
e5a5856
refactor : remove mcd.h(not used now) and parallel_reduce.h from tools.h
dyzheng Jan 18, 2022
d3c72ad
refactor : remove parallel_common.h from tools.h
dyzheng Jan 18, 2022
ac930a1
refactor : remove memory.h from tools.h
dyzheng Jan 18, 2022
b94b3a5
Merge pull request #645 from caic99/ci
dyzheng Jan 18, 2022
171d727
Merge branch 'develop' of https://github.com/deepmodeling/abacus-deve…
sunliang98 Jan 19, 2022
e65cc23
test: add unit test for class ComplexArray, and add the notes in comp…
pxlxingliang Jan 19, 2022
beeb865
refactor : removed constants.h in tools.h, now only three header left.
dyzheng Jan 19, 2022
7863cbb
refactor : removed timer.h in tools.h, only two headers left
dyzheng Jan 19, 2022
aae83c3
removed tools.h in ABACUS!
dyzheng Jan 19, 2022
ce39271
refactor : modified mpi.h include path
dyzheng Jan 19, 2022
e6bf099
refactor : removed unused file tools.h
dyzheng Jan 19, 2022
92542ed
test: fix mistakes in complexarray_test.py and complexarray.h
pxlxingliang Jan 20, 2022
e5e14cf
test: fix com1*-1
pxlxingliang Jan 20, 2022
7eea392
< fix >
sunliang98 Jan 20, 2022
d2c871c
Merge pull request #644 from dyzheng/develop
dyzheng Jan 20, 2022
50683a9
blas & lapack:
Jan 20, 2022
8f90051
blas & lapack:
Jan 20, 2022
b9a1fde
test: modify the comparsion of two complex
pxlxingliang Jan 21, 2022
5b09afa
Fix : compiler error when LIBXC=ON
dyzheng Jan 21, 2022
7f132ca
test: fix the typo
pxlxingliang Jan 21, 2022
958a190
test: fix typoes, and modify the test name
pxlxingliang Jan 21, 2022
22787f7
Fix : compiling error for cuda version in caused by #644
dyzheng Jan 21, 2022
e35c936
fix bug: assert bug in class matrix
pxlxingliang Jan 21, 2022
fe5461d
<unittest> for 4 func. of module_base/tool_check
hongriTianqi Jan 22, 2022
b6e9a7e
Merge pull request #650 from wenfei-li/develop
dyzheng Jan 22, 2022
77806ef
Fix : compiler #644 error when LIBXC=ON
caic99 Jan 24, 2022
b38ef52
test: modify the layout of some codes
pxlxingliang Jan 24, 2022
55972a5
Style: not using 'tab' anymore - space only.
caic99 Jan 24, 2022
c44303c
modify tool_check_test.cpp
hongriTianqi Jan 24, 2022
eac0d79
add gmock in CMakeLists.txt & remove "symmetry"
hongriTianqi Jan 24, 2022
63c8630
delete reference to source file tool_quit_test.cpp
hongriTianqi Jan 24, 2022
cb1fca7
add modified CMakeLists.txt
hongriTianqi Jan 24, 2022
f69ae98
removed unused copy of lapack subroutine ZHEGVX
Jan 24, 2022
733316b
Merge pull request #657 from wenfei-li/develop
dyzheng Jan 24, 2022
021a3dc
Style: not using 'tab' anymore - space only.
dyzheng Jan 24, 2022
6509410
move Cblacs.h to module_base and rename to cblacs_connector.h
Jan 24, 2022
3a934e0
add some comments in lapack_connector.h; remove DGER from myfunc.h
Jan 24, 2022
63d7ec3
removed unused wrapper ILAENV, zgemv, and ZHPEV
Jan 24, 2022
ad49e78
removed unused wrapper dsyev
Jan 24, 2022
f9ae72f
modify comments & add author name
hongriTianqi Jan 25, 2022
855e4e4
add abs(v-v_in) in CHECK_DOUBLE func.
hongriTianqi Jan 25, 2022
e7f9c01
Merge branch 'develop' of https://github.com/deepmodeling/abacus-deve…
YuLiu98 Jan 25, 2022
3011092
modify comments in tool_check_test.cpp
hongriTianqi Jan 25, 2022
cc08483
Merge pull request #653 from hongriTianqi/develop
hongriTianqi Jan 25, 2022
e30b109
test: 3 functions in tool_quit.h
hongriTianqi Jan 25, 2022
12b4a22
test: 3 functions in tool_quit.h
caic99 Jan 25, 2022
0be11cb
Test: UT for class ComplexArray,
caic99 Jan 25, 2022
2a49d99
Add four functions to avoid repeating the code. Replace 'exit' with W…
sunliang98 Jan 25, 2022
1ceca51
Merge pull request #660 from pxlxingliang/matix
pxlxingliang Jan 26, 2022
83e4445
test: add comments and unittest for integral.h
pxlxingliang Jan 26, 2022
26fa4d5
modify the name by removing "_" in macro TEST/TEST_F
pxlxingliang Jan 26, 2022
b444979
fix compile error with deepks caused by unincluded
maki49 Jan 26, 2022
52a8509
the ultimate goal is to have unified interfaces
Jan 26, 2022
a1f53d1
modify the comments according to the Doxygen standard
pxlxingliang Jan 27, 2022
5927bb8
add some comments in header file
Jan 27, 2022
3fd1083
turn on deepks in dynamic.yml
Jan 27, 2022
fa16019
test: add comments and unittest for math_sphbes.h
pxlxingliang Jan 27, 2022
e311ae9
Add CMakeLists.txt style in .editorconfig
caic99 Jan 28, 2022
2ed5a6f
Merge branch 'develop' of https://github.com/deepmodeling/abacus-deve…
caic99 Jan 28, 2022
f3716c0
Test: Remove redundant requirements.
caic99 Jan 28, 2022
649696c
xc functional : moved funtionals from myfunc to xc_functional
Jan 28, 2022
db66aa5
Merge pull request #665 from wenfei-li/develop
dyzheng Jan 28, 2022
5569996
Merge pull request #649 from sunliang98/develop
dyzheng Jan 28, 2022
674cd11
Merge pull request #666 from maki49/develop
dyzheng Jan 28, 2022
1ff78dd
Test: fix math lib linking in UT.
caic99 Jan 28, 2022
0d6e7ab
Fix typo.
caic99 Jan 28, 2022
21e6a77
include vector3.h in xc_functional.h
Jan 28, 2022
dc5ffa2
Test: Fix fortran lib not properly linked.
caic99 Jan 28, 2022
6dafee3
Merge branch 'develop' of https://github.com/deepmodeling/abacus-deve…
caic99 Jan 28, 2022
fc60f04
Fix misuse of operator when determining compiler.
caic99 Jan 28, 2022
8b81f96
Test: reverting UT flag
caic99 Jan 28, 2022
f140995
Test: remove redundant source files of complexarray UT.
caic99 Jan 28, 2022
b0a9ab3
Merge pull request #676 from caic99/develop
dyzheng Jan 28, 2022
5d7496f
Test: Fix misuse of EXPECT_DEATH with a 0 exit code.
caic99 Jan 28, 2022
786868c
Merge branch 'develop' of https://github.com/deepmodeling/abacus-deve…
caic99 Jan 28, 2022
c5cc154
Merge pull request #677 from caic99/develop
dyzheng Jan 28, 2022
1c7cc49
test(redo): unit test of Memory in Module_base
hongriTianqi Jan 29, 2022
eea6086
change order of UT in module_base
hongriTianqi Jan 29, 2022
c2226f8
reformat indents in memory_test.cpp
hongriTianqi Jan 29, 2022
7d0a752
Merge pull request #680 from hongriTianqi/develop
caic99 Jan 29, 2022
b32320d
test: add full unit test of base_matrix3
hongriTianqi Jan 29, 2022
1ff13ed
modify matrix3_test.cpp
hongriTianqi Jan 29, 2022
d06aa27
grammar issues in comments
hongriTianqi Jan 30, 2022
3d45290
delete an unnecessary line
hongriTianqi Jan 30, 2022
5f1387a
Merge pull request #682 from hongriTianqi/develop
caic99 Jan 30, 2022
03e45a1
Merge branch 'develop' of https://github.com.cnpmjs.org/deepmodeling/…
pxlxingliang Feb 7, 2022
abb2b2d
test: modify CMakeLists.txt
pxlxingliang Feb 7, 2022
b70ddef
test: add a missing test in matrix3_test.cpp
hongriTianqi Feb 7, 2022
79a914d
Merge pull request #687 from hongriTianqi/develop
hongriTianqi Feb 7, 2022
ace7bf1
test: base_timer
hongriTianqi Feb 7, 2022
f6ef92d
Merge branch 'develop' of https://github.com/deepmodeling/abacus-deve…
YuLiu98 Feb 7, 2022
d9e018c
modify timer_test.cpp
hongriTianqi Feb 7, 2022
253d28a
Test: update unit tests of module_md according to PR #676
YuLiu98 Feb 7, 2022
3717be8
modify timer_test.cpp
hongriTianqi Feb 7, 2022
f5f3e45
Merge pull request #675 from wenfei-li/develop
dyzheng Feb 8, 2022
ea94b4c
add ifdef __MPI in two UTs and sleep() in timer
hongriTianqi Feb 8, 2022
954be65
Merge pull request #663 from pxlxingliang/integral
caic99 Feb 8, 2022
ef058dc
Test: update UT Cmakelist.txt of module_md
YuLiu98 Feb 8, 2022
107b84d
Merge branch 'develop' of https://github.com/deepmodeling/abacus-deve…
YuLiu98 Feb 8, 2022
adc3b67
Merge pull request #625 from YuLiu98/md_unittest
YuLiu98 Feb 8, 2022
bb182f4
add cal_grad_overlap in orb11
maki49 Nov 20, 2021
8914737
fix a bug of Center2Orb::Orb11::cal_grad_overlap
maki49 Jan 13, 2022
92d23f7
gtest: double-check 2-center-int results from 2 classes
maki49 Jan 13, 2022
3329328
move to module_orbital/test and add CMakeLists.txt
maki49 Jan 14, 2022
ffcdfad
fix: orbital file not found
maki49 Jan 14, 2022
99071d6
add MPI_init
maki49 Jan 19, 2022
f3b7fd4
move main func to 1_snap_equal_test.cpp
maki49 Jan 22, 2022
5e99ede
modify according to the review
maki49 Jan 28, 2022
7a535a5
modify CMakeLists.txt according to #676
maki49 Feb 8, 2022
238828a
fix compile error caused by not linking lib in module_md/test
maki49 Feb 8, 2022
c610431
modify timer_test and MPI env in UT
hongriTianqi Feb 9, 2022
2a6365b
Merge pull request #688 from hongriTianqi/unittest
hongriTianqi Feb 9, 2022
e31807d
fix 'file not found'
maki49 Feb 9, 2022
8e8ce27
test: add the comments and unittest for complexmatrix
pxlxingliang Feb 9, 2022
81b9afc
add program annotations in timer.h
Feb 9, 2022
709962e
modify annotations of matrix3.h
Feb 9, 2022
71460fd
modify annotations in matrix3.h
Feb 10, 2022
bd77cf4
test: add the mock of WARNING_QUIT, and modify CMakeLists.txt
pxlxingliang Feb 10, 2022
bd28d6d
test: modify the comment of mock function
pxlxingliang Feb 10, 2022
4df9983
test: modify the comment of zero_out
pxlxingliang Feb 10, 2022
0d84013
modify annotations in matrix3.h & tool_check.h
Feb 10, 2022
8d5ad66
modify annotations in matrix3.h
Feb 10, 2022
1a7deae
Merge pull request #689 from hongriTianqi/unittest
dyzheng Feb 10, 2022
30b51e4
Merge pull request #691 from pxlxingliang/complexmatrix
dyzheng Feb 10, 2022
7680e5e
test: add the unittest of module_base/matrix.h
pxlxingliang Feb 11, 2022
ff824b8
modify the test name following "case upper camel case naming"
pxlxingliang Feb 11, 2022
7f653d0
test: add UT and annotations of realArray
Feb 11, 2022
c980910
modify annotations in realarray.h
Feb 11, 2022
ceba5b3
test: add UT and annotations for IntArray class
Feb 11, 2022
66a2aca
fix a bug caused by memory access
maki49 Feb 11, 2022
68fdb1b
test: add UT and annotations for class Vector3
Feb 11, 2022
89fb837
modify annotations in vector3 class
Feb 11, 2022
8fbb5bb
test: add UT and annotations for mathzone class
Feb 11, 2022
87bfe1d
Merge branch 'develop' of https://github.com/deepmodeling/abacus-deve…
caic99 Feb 11, 2022
a6a8497
Fix: remove unneeded parallel header for tool_quit.
caic99 Feb 11, 2022
7efd1d5
fix: change github managed runner and AWS EC2 runner to self-hosted r…
Feb 11, 2022
94c0cc5
Merge pull request #704 from Unboundwill/develop
caic99 Feb 11, 2022
31b7b27
Merge branch 'deepmodeling:develop' into develop
caic99 Feb 11, 2022
ef3187a
Fix: add back testing
caic99 Feb 11, 2022
46d3548
Test: using github-hosted machine for building
caic99 Feb 11, 2022
a9d0198
Update container.yml
caic99 Feb 11, 2022
0766b4f
Merge pull request #706 from deepmodeling/caic99-patch-1
caic99 Feb 11, 2022
24a151b
Merge branch 'deepmodeling:develop' into develop
caic99 Feb 11, 2022
f26107a
small changes
maki49 Feb 12, 2022
c4b0127
Merge pull request #703 from caic99/develop
caic99 Feb 12, 2022
b98fce1
Merge pull request #634 from maki49/hybrid_force
caic99 Feb 13, 2022
2502701
Merge branch 'deepmodeling:develop' into matrix
pxlxingliang Feb 14, 2022
1b867e1
Merge branch 'deepmodeling:develop' into unittest
hongriTianqi Feb 14, 2022
222b8aa
Merge pull request #698 from pxlxingliang/matrix
caic99 Feb 14, 2022
cfbd792
Merge branch 'develop' into unittest
hongriTianqi Feb 14, 2022
64e1e77
Merge pull request #708 from hongriTianqi/unittest
caic99 Feb 14, 2022
a5d3e11
test: add the unit test of sph_bessel_recursive.h
pxlxingliang Feb 14, 2022
8cf03d7
Merge branch 'develop' into sph_bessel
pxlxingliang Feb 14, 2022
6975edd
Merge pull request #713 from pxlxingliang/sph_bessel
caic99 Feb 14, 2022
7f6bf84
Merge branch 'develop' of https://github.com/deepmodeling/abacus-deve…
pxlxingliang Feb 14, 2022
30aff49
test: add the unit test and comments of math_sphbes.h
pxlxingliang Feb 15, 2022
aca89f4
fix the delete of pointer r jl
pxlxingliang Feb 15, 2022
1ce08d0
loose the threshold and modify the comments
pxlxingliang Feb 15, 2022
bbc471e
modified the recommended values of exx related input parameters.
ouqi0711 Feb 15, 2022
e67cec0
added a note of parallel job limitations for exx jobs
ouqi0711 Feb 15, 2022
2dbcd0c
Merge pull request #723 from ouqi0711/develop
caic99 Feb 16, 2022
8751d9f
Merge pull request #720 from pxlxingliang/math-sphbes
pxlxingliang Feb 16, 2022
057fe8f
test: add the unit test and comments for math_polyint.h
pxlxingliang Feb 17, 2022
f483a0f
modify the name of Func to sinc
pxlxingliang Feb 17, 2022
be97d86
Merge pull request #726 from pxlxingliang/develop
pxlxingliang Feb 17, 2022
4afd0cf
test:add the unittest and comments of math_ylmreal.h
pxlxingliang Feb 17, 2022
96a721b
test: UT and annotations in mathzone_add1
Feb 17, 2022
716e3fd
Merge branch 'develop' into unittest
hongriTianqi Feb 17, 2022
b9f3b06
test:modify mathzone_add1_test.cpp
Feb 17, 2022
7157bb7
Merge branch 'unittest' of github.com:hongriTianqi/abacus-develop int…
Feb 17, 2022
a3cd7d8
use M_PI in math.h
pxlxingliang Feb 17, 2022
129e193
Merge pull request #727 from pxlxingliang/develop
pxlxingliang Feb 18, 2022
d129b1c
Merge branch 'develop' into unittest
hongriTianqi Feb 18, 2022
bdd7256
Merge pull request #728 from hongriTianqi/unittest
hongriTianqi Feb 18, 2022
5d7588c
Fix #736: memory free by wrong index
caic99 Feb 21, 2022
eeb8cc7
Merge pull request #738 from deepmodeling/caic99-patch-1
dyzheng Feb 21, 2022
9a14a1a
test: add the unit test and comments for ylm.h
pxlxingliang Feb 22, 2022
3523ec0
Merge branch 'develop' into develop
pxlxingliang Feb 24, 2022
7468328
UT and annotations for math_bspline
Feb 28, 2022
eb05e52
Merge pull request #740 from pxlxingliang/develop
dyzheng Feb 28, 2022
3de2b49
Merge pull request #756 from hongriTianqi/develop
caic99 Feb 28, 2022
b07c047
UT and annotations for inverse_matrix and heapsort
Feb 28, 2022
794495b
modify mymath_test.cpp
Feb 28, 2022
3dae312
Add: Find Googletest by custom dir locally.
caic99 Mar 1, 2022
69eb0b3
Add docs for googletest
caic99 Mar 1, 2022
469903b
Fix gtest found condition
caic99 Mar 1, 2022
ebf1afe
Merge pull request #758 from hongriTianqi/develop
hongriTianqi Mar 2, 2022
a4c6f5a
Merge pull request #761 from deepmodeling/cmake
dyzheng Mar 2, 2022
53a7d9d
Merge branch 'develop' of github.com:abacusmodeling/abacus-develop in…
dyzheng Mar 3, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
195 changes: 33 additions & 162 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,166 +1,37 @@
---
Language: Cpp
# BasedOnStyle: LLVM
AccessModifierOffset: -2
BasedOnStyle: Microsoft
AccessModifierOffset: '-2'
AlignAfterOpenBracket: Align
AlignConsecutiveMacros: None
AlignConsecutiveAssignments: None
AlignConsecutiveBitFields: None
AlignConsecutiveDeclarations: None
AlignEscapedNewlines: Right
AlignOperands: Align
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortEnumsOnASingleLine: true
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AllowShortLambdasOnASingleLine: All
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: MultiLine
AttributeMacros:
- __capability
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: Never
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeConceptDeclarations: true
BreakBeforeBraces: Attach
BreakBeforeInheritanceComma: false
BreakInheritanceList: BeforeColon
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 80
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DeriveLineEnding: true
DerivePointerAlignment: false
DisableFormat: false
EmptyLineBeforeAccessModifier: LogicalBlock
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
StatementAttributeLikeMacros:
- Q_EMIT
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
SortPriority: 0
CaseSensitive: false
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
Priority: 3
SortPriority: 0
CaseSensitive: false
- Regex: '.*'
Priority: 1
SortPriority: 0
CaseSensitive: false
IncludeIsMainRegex: '(Test)?$'
IncludeIsMainSourceRegex: ''
IndentCaseLabels: false
IndentCaseBlocks: false
IndentGotoLabels: true
IndentPPDirectives: None
IndentExternBlock: AfterExternBlock
IndentRequires: false
IndentWidth: 4
IndentWrappedFunctionNames: false
InsertTrailingCommas: None
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 2
ObjCBreakBeforeNestedBlockParam: true
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PenaltyIndentedWhitespace: 0
AlignConsecutiveMacros: 'true'
AlignEscapedNewlines: Left
AlignOperands: 'true'
AlignTrailingComments: 'false'
AllowAllArgumentsOnNextLine: 'false'
AllowAllParametersOfDeclarationOnNextLine: 'false'
BinPackArguments: 'false'
BinPackParameters: 'false'
BreakBeforeBinaryOperators: All
BreakBeforeTernaryOperators: 'true'
Cpp11BracedListStyle: 'true'
DerivePointerAlignment: 'true'
FixNamespaceComments: 'true'
IncludeBlocks: Regroup
IndentWidth: '4'
Language: Cpp
PointerAlignment: Right
ReflowComments: true
SortIncludes: true
SortJavaStaticImport: Before
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceAroundPointerQualifiers: Default
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInConditionalStatement: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpaceBeforeSquareBrackets: false
BitFieldColonSpacing: Both
Standard: Latest
StatementMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION
TabWidth: 8
UseCRLF: false
UseTab: Never
WhitespaceSensitiveMacros:
- STRINGIZE
- PP_STRINGIZE
- BOOST_PP_STRINGIZE
- NS_SWIFT_NAME
- CF_SWIFT_NAME
ReflowComments: 'true'
SortIncludes: 'true'
SortUsingDeclarations: 'true'
SpaceAfterCStyleCast: 'false'
SpaceAfterLogicalNot: 'false'
SpaceBeforeRangeBasedForLoopColon: 'false'
SpaceInEmptyParentheses: 'false'
SpacesInAngles: 'false'
SpacesInCStyleCastParentheses: 'false'
SpacesInContainerLiterals: 'false'
SpacesInParentheses: 'false'
SpacesInSquareBrackets: 'false'
Standard: Cpp11
TabWidth: '4'
UseTab: Never
...

11 changes: 8 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
// For format details, see https://aka.ms/devcontainer.json.
// To develop inside a pre-configured container, see https://code.visualstudio.com/docs/remote/containers .
// For format details, see https://aka.ms/devcontainer.json .
{
"image":"ghcr.io/deepmodeling/abacus-development-kit:gnu",
"extensions": ["ms-vscode.cpptools-extension-pack"]
}
"extensions": [
"ms-vscode.cpptools-extension-pack",
"xaver.clang-format",
"cschlosser.doxdocgen"
]
}
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ trim_trailing_whitespace = true

[*.yaml]
indent_size = 2

[CMakeLists.txt]
indent_style = space
indent_size = 2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: Build Test
on: push

jobs:
Expand Down Expand Up @@ -27,5 +27,4 @@ jobs:
- name: Build
run: |
cmake -B build -DBUILD_TESTING=ON ${{ matrix.build_args }}
cmake --build build -j4
cmake --install build
cmake --build build -j2
2 changes: 1 addition & 1 deletion .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- develop
- reconstruction
- newelpa

jobs:
build_container_and_push:
runs-on: ubuntu-latest
Expand Down
52 changes: 4 additions & 48 deletions .github/workflows/dynamic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,67 +11,23 @@ on:
default: '2'

jobs:
start-runner:
name: Start self-hosted EC2 runner
runs-on: ubuntu-latest
outputs:
label: ${{ steps.start-ec2-runner.outputs.label }}
ec2-instance-id: ${{ steps.start-ec2-runner.outputs.ec2-instance-id }}
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Start EC2 runner
id: start-ec2-runner
uses: machulav/ec2-github-runner@v2
with:
mode: start
github-token: ${{ secrets.PAT }}
ec2-image-id: ami-07758124f42f794bf
ec2-instance-type: c5.4xlarge
subnet-id: subnet-f7edb991
security-group-id: sg-fd5185e7
test:
name: Do the job on the runner
needs: start-runner # required to start the main job when the runner is ready
runs-on: ${{ needs.start-runner.outputs.label }} # run the job on the newly created runner
runs-on: self-hosted
container: ghcr.io/deepmodeling/abacus-development-kit:gnu
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build and Test
run: |
cmake -B build -DENABLE_ASAN=1
cmake -B build -DENABLE_ASAN=1 -DBUILD_TESTING=ON -DENABLE_DEEPKS=1
cmake --build build -j16
ctest --test-dir build --verbose
cmake --install build
cmake --build build --target test ARGS="-V"
- name: Publish Report to Dashboard
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: dashboard
build_dir: html
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
stop-runner:
name: Stop self-hosted EC2 runner
needs:
- start-runner # required to get output from the start-runner job
- test # required to wait when the main job is done
runs-on: ubuntu-latest
if: ${{ always() }} # required to stop the runner even if the error happened in the previous jobs
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Stop EC2 runner
uses: machulav/ec2-github-runner@v2
with:
mode: stop
github-token: ${{ secrets.PAT }}
label: ${{ needs.start-runner.outputs.label }}
ec2-instance-id: ${{ needs.start-runner.outputs.ec2-instance-id }}
13 changes: 4 additions & 9 deletions .github/workflows/static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
clang-tidy:
runs-on: ubuntu-20.04
runs-on: self-hosted
container: ghcr.io/deepmodeling/abacus-development-kit:gnu
steps:
- name: Checkout Pull Request
Expand All @@ -14,22 +14,17 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup clang-tidy
run: |
apt-get install -y --no-install-recommends gnupg ca-certificates
wget https://apt.llvm.org/llvm-snapshot.gpg.key --no-check-certificate && apt-key add llvm-snapshot.gpg.key
echo "deb http://apt.llvm.org/buster/ llvm-toolchain-buster-12 main" >> /etc/apt/sources.list
echo "deb-src http://apt.llvm.org/buster/ llvm-toolchain-buster-12 main" >> /etc/apt/sources.list
apt-get update
apt-get install -y --no-install-recommends clang-tidy-12
apt-get update && apt-get install -y --no-install-recommends clang-format clang-tidy
- name: Generate Build Commands
run: |
cmake -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_CXX_COMPILER=clang++-12
cmake -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=1
- name: Checkout Changed Files
id: files
uses: deepmodeling/get-changed-files@master
- name: Run clang-tidy
run: |
printf "%s\n" ${{ steps.files.outputs.added_modified }} | grep -E "^.*\.(cpp|h)$" > cppfiles.txt
clang-tidy-12 -p=build --export-fixes=diagnostics.yaml `cat cppfiles.txt`
clang-tidy -p=build --export-fixes=diagnostics.yaml `cat cppfiles.txt`
- name: Run clang-tidy-pr-comments action
uses: deepmodeling/abacus-code-reviewer@master
with:
Expand Down
Loading