Skip to content

Commit 9c245e6

Browse files
CstandardlibFisherd99
authored andcommitted
Tests: Add GPU tests for out_wfc_pw & out_wfc_r (deepmodeling#5989)
* Add GPU tests for outWfcPW & outWfcR * Update jd * Update integrate TEST CASES for new GPU tests * Update correct result.ref for test 107_PW_outWfcPw_GPU * Remove 107_PW_outWfcR_GPU from CASES GPU temporarily to wait for refactor
1 parent b8a0860 commit 9c245e6

File tree

11 files changed

+117
-0
lines changed

11 files changed

+117
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
INPUT_PARAMETERS
2+
#Parameters (1.General)
3+
suffix autotest
4+
calculation scf
5+
6+
nbands 6
7+
symmetry 1
8+
pseudo_dir ../../PP_ORB
9+
10+
device gpu
11+
12+
#Parameters (2.Iteration)
13+
ecutwfc 20
14+
scf_thr 1e-9
15+
scf_nmax 100
16+
17+
#Parameters (3.Basis)
18+
basis_type pw
19+
20+
out_wfc_pw 1
21+
22+
pw_seed 1
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
K_POINTS
2+
0
3+
Gamma
4+
2 2 2 0 0 0
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
ATOMIC_SPECIES
2+
Si 14 Si_ONCV_PBE-1.0.upf upf201
3+
4+
LATTICE_CONSTANT
5+
10.2 // add lattice constant
6+
7+
LATTICE_VECTORS
8+
0.0 0.5 0.5
9+
0.5 0.0 0.5
10+
0.5 0.5 0.0
11+
12+
ATOMIC_POSITIONS
13+
Direct
14+
15+
Si // Element type
16+
0.0 // magnetism
17+
2
18+
0.00 0.00 0.00 1 1 1
19+
0.25 0.25 0.25 1 1 1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GPU version / test the output of wfc_pw, and verify the maximum absolute coefficient
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
etotref -211.8032873347885
2+
etotperatomref -105.9016436674
3+
Max_wfc_1 0.9527
4+
Max_wfc_2 0.3675
5+
Max_wfc_3 0.3351
6+
Max_wfc_4 0.3825
7+
Max_wfc_5 0.4409
8+
Max_wfc_6 0.4752
9+
pointgroupref T_d
10+
spacegroupref O_h
11+
nksibzref 3
12+
totaltimeref 3.06
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
INPUT_PARAMETERS
2+
#Parameters (1.General)
3+
suffix autotest
4+
calculation scf
5+
6+
nbands 6
7+
symmetry 1
8+
pseudo_dir ../../PP_ORB
9+
10+
device gpu
11+
12+
#Parameters (2.Iteration)
13+
ecutwfc 20
14+
scf_thr 1e-9
15+
scf_nmax 100
16+
17+
#Parameters (3.Basis)
18+
basis_type pw
19+
20+
out_wfc_r 1
21+
22+
pw_seed 1
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
K_POINTS
2+
0
3+
Gamma
4+
2 2 2 0 0 0
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
ATOMIC_SPECIES
2+
Si 14 Si_ONCV_PBE-1.0.upf upf201
3+
4+
LATTICE_CONSTANT
5+
10.2 // add lattice constant
6+
7+
LATTICE_VECTORS
8+
0.0 0.5 0.5
9+
0.5 0.0 0.5
10+
0.5 0.5 0.0
11+
12+
ATOMIC_POSITIONS
13+
Direct
14+
15+
Si // Element type
16+
0.0 // magnetism
17+
2
18+
0.00 0.00 0.00 1 1 1
19+
0.25 0.25 0.25 1 1 1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GPU version / test the output of wfc_r, and compare the variance
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
etotref -197.1405644417868
2+
etotperatomref -98.5702822209
3+
variance_wfc_r_0_0 0.31340
4+
variance_wfc_r_0_1 1.71055
5+
variance_wfc_r_0_2 2.39603
6+
variance_wfc_r_0_3 1.66607
7+
variance_wfc_r_0_4 1.05190
8+
variance_wfc_r_0_5 1.29386
9+
pointgroupref T_d
10+
spacegroupref O_h
11+
nksibzref 1
12+
totaltimeref 0.31

0 commit comments

Comments
 (0)