forked from abacusmodeling/abacus-develop
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: compute module_gint by GPU (#4109)
* add CUDA code for module_gint and fix bug about cusolver * add comments for code_gen.cpp * add integrated test cases for CUDA gint and cusolver * add some gint test cases * modify cuda tests * modify the location of the CUDA test folder * modify some GPU test cases * modify some STRU and INPUT files for GPU test cases to reduce testing time * format INPUT file in GPU test cases * format some code * add curly brackets to if and for statements * add const to some function arguments * fix comments * fix error in gint force * remove const in gint_rho * Update input_conv_test.cpp modify input test about GPU * remove time.sh in tests/integrate * modify INPUT file in GPU test cases * remove inappropriate changes in tests/performance. * remove USE_CUSOLVER_LCAO flag * enable check in non-debug enviroment * Use abbreviations instead of unreasonable naming * fix error in debug * modify the doc about ks_solver * change the default ks_solver to cusolver * modify cuda.md --------- Co-authored-by: A-006 <[email protected]> Co-authored-by: Mohan Chen <[email protected]>
- Loading branch information
1 parent
922db46
commit a2798b2
Showing
126 changed files
with
14,911 additions
and
702 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
INPUT_PARAMETERS | ||
#Parameters (1.General) | ||
suffix autotest | ||
calculation scf | ||
device gpu | ||
gamma_only 1 # GPU acceleration currently only support gamma_only set to 1. | ||
ks_solver cusolver # if not set, the default ks_solver is cusolver, | ||
# you can also choose genelpa or scalapack_gvx. | ||
|
||
#nbands 8 | ||
symmetry 1 | ||
|
||
#Parameters (2.Iteration) | ||
ecutwfc 100 | ||
scf_thr 1e-6 | ||
scf_nmax 100 | ||
cal_force 1 | ||
cal_stress 1 | ||
|
||
#Parameters (3.Basis) | ||
basis_type lcao | ||
|
||
#Parameters (4.Smearing) | ||
smearing_method gauss | ||
smearing_sigma 0.002 | ||
|
||
#Parameters (5.Mixing) | ||
mixing_type broyden | ||
mixing_beta 0.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
K_POINTS | ||
0 | ||
Gamma | ||
1 1 1 0 0 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
ATOMIC_SPECIES | ||
Si 14.000 ../../../tests/PP_ORB/Si_ONCV_PBE-1.0.upf | ||
|
||
NUMERICAL_ORBITAL | ||
../../../tests/PP_ORB/Si_gga_8au_100Ry_2s2p1d.orb | ||
|
||
LATTICE_CONSTANT | ||
0.999660 | ||
|
||
LATTICE_VECTORS | ||
10.20000 10.20000 0.00000 | ||
10.20000 0.00000 10.20000 | ||
0.00000 10.20000 10.20000 | ||
|
||
ATOMIC_POSITIONS | ||
Direct | ||
|
||
Si | ||
0.0 | ||
16 | ||
0.0000000 0.0000000 0.0000000 1 1 1 | ||
0.1250000 0.1250000 0.1250000 1 1 1 | ||
0.0000000 0.0000000 0.5000000 1 1 1 | ||
0.1250000 0.1250000 0.6250000 1 1 1 | ||
0.0000000 0.5000000 0.0000000 1 1 1 | ||
0.1250000 0.6250000 0.1250000 1 1 1 | ||
0.0000000 0.5000000 0.5000000 1 1 1 | ||
0.1250000 0.6250000 0.6250000 1 1 1 | ||
0.5000000 0.0000000 0.0000000 1 1 1 | ||
0.6250000 0.1250000 0.1250000 1 1 1 | ||
0.5000000 0.0000000 0.5000000 1 1 1 | ||
0.6250000 0.1250000 0.6250000 1 1 1 | ||
0.5000000 0.5000000 0.0000000 1 1 1 | ||
0.6250000 0.6250000 0.1250000 1 1 1 | ||
0.5000000 0.5000000 0.5000000 1 1 1 | ||
0.6250000 0.6250000 0.6250000 1 1 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.