Skip to content

Commit 167f691

Browse files
committed
Add GPU tests for outWfcPW & outWfcR
1 parent 3950276 commit 167f691

File tree

10 files changed

+117
-0
lines changed

10 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+
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 -197.1405644417894
2+
etotperatomref -98.5702822209
3+
Max_wfc_1 0.8113
4+
Max_wfc_2 0.4031
5+
Max_wfc_3 0.4073
6+
Max_wfc_4 0.3141
7+
Max_wfc_5 0.4158
8+
Max_wfc_6 0.4405
9+
pointgroupref T_d
10+
spacegroupref O_h
11+
nksibzref 1
12+
totaltimeref 0.37
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

tests/integrate/107_PW_outWfcR_GPU/jd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
test the output of wfc_r, and compare the variance
2+
GPU version
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)