Skip to content

Commit f72973b

Browse files
committed
Debugging CI
1 parent 73a1603 commit f72973b

File tree

2 files changed

+58
-21
lines changed

2 files changed

+58
-21
lines changed

.github/workflows/test-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ jobs:
4545
if: failure()
4646
uses: actions/upload-artifact@v4
4747
with:
48-
name: test-report-ubuntu
49-
path: test-suite.log
48+
name: qmckl-standard
49+
path: _build/test-suite.log
5050

5151
- name: Dist test
5252
run: make distcheck
@@ -105,7 +105,7 @@ jobs:
105105
if: failure()
106106
uses: actions/upload-artifact@v4
107107
with:
108-
name: test-report-ubuntu-debug
108+
name: qmckl-debug
109109
path: _build_debug/test-suite.log
110110

111111
hpc:
@@ -144,7 +144,7 @@ jobs:
144144
if: failure()
145145
uses: actions/upload-artifact@v4
146146
with:
147-
name: test-report-ubuntu-debug
147+
name: qmckl-hpc
148148
path: _build_hpc/test-suite.log
149149

150150
macos:
@@ -189,6 +189,6 @@ jobs:
189189
if: failure()
190190
uses: actions/upload-artifact@v4
191191
with:
192-
name: test-report-macos-x86
192+
name: qmckl-macos-x86
193193
path: _build_hpc/test-suite.log
194194

org/qmckl_jastrow_champ.org

Lines changed: 53 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2859,7 +2859,7 @@ assert(qmckl_electron_provided(context));
28592859
printf("ee_distance_rescaled_gl\n");
28602860
double fd[walk_num][elec_num][elec_num][4];
28612861

2862-
double delta_x = 0.0001;
2862+
double delta_x = 0.001;
28632863

28642864
// Finite difference coefficients for gradients
28652865
double coef[9] = { 1.0/280.0, -4.0/105.0, 1.0/5.0, -4.0/5.0, 0.0, 4.0/5.0, -1.0/5.0, 4.0/105.0, -1.0/280.0 };
@@ -2953,14 +2953,20 @@ assert(qmckl_electron_provided(context));
29532953
for (int i = 0; i < elec_num; i++) {
29542954
for (int j = 0; j < elec_num; j++) {
29552955
for (int k = 0; k < 3; k++){
2956-
// printf("%.10f\t", fd[nw][i][j][k]);
2957-
// printf("%.10f\n", ee_distance_rescaled_gl[nw][i][j][k]);
2956+
if (fabs(fd[nw][i][j][k] - ee_distance_rescaled_gl[nw][i][j][k]) > 1.e-12) {
2957+
printf("nw=%d i=%d j=%d k=%d\n", nw, i, j, k);
2958+
printf("fd =%f\n", fd[nw][i][j][k]);
2959+
printf("ee_distance_rescaled_gl=%f\n", ee_distance_rescaled_gl[nw][i][j][k]);
2960+
}
29582961
assert(fabs(fd[nw][i][j][k] - ee_distance_rescaled_gl[nw][i][j][k]) < 1.e-8);
29592962
}
29602963
int k=3;
29612964
if (i != j) {
2962-
// printf("%.10f\t", fd[nw][i][j][k]);
2963-
// printf("%.10f\n", ee_distance_rescaled_gl[nw][i][j][k]);
2965+
if (fabs(fd[nw][i][j][k] - ee_distance_rescaled_gl[nw][i][j][k]) > 1.e-12) {
2966+
printf("nw=%d i=%d j=%d k=%d\n", nw, i, j, k);
2967+
printf("fd =%f\n", fd[nw][i][j][k]);
2968+
printf("ee_distance_rescaled_gl=%f\n", ee_distance_rescaled_gl[nw][i][j][k]);
2969+
}
29642970
assert(fabs(fd[nw][i][j][k] - ee_distance_rescaled_gl[nw][i][j][k]) < 1.e-6);
29652971
}
29662972
}
@@ -2988,7 +2994,12 @@ assert(qmckl_electron_provided(context));
29882994
&(ee_distance_rescaled_gl_hpc[0]));
29892995
assert(rc == QMCKL_SUCCESS);
29902996

2991-
for (int i = 0; i < walk_num*nucl_num*elec_num*4; i++) {
2997+
for (int64_t i = 0; i < walk_num*nucl_num*elec_num*4; i++) {
2998+
if (fabs(ee_distance_rescaled_gl_hpc[i] - ee_distance_rescaled_gl_doc[i]) > 1.e-12) {
2999+
printf("i=%ld\n", i);
3000+
printf("ee_distance_rescaled_gl_doc=%f\n", ee_distance_rescaled_gl_doc[i]);
3001+
printf("ee_distance_rescaled_gl_hpc=%f\n", ee_distance_rescaled_gl_hpc[i]);
3002+
}
29923003
assert(fabs(ee_distance_rescaled_gl_doc[i] - ee_distance_rescaled_gl_hpc[i]) < 1.e-8);
29933004
}
29943005
}
@@ -3543,6 +3554,11 @@ assert(qmckl_jastrow_champ_provided(context));
35433554
assert (rc == QMCKL_SUCCESS);
35443555

35453556
for (int64_t i = 0; i < walk_num; i++) {
3557+
if (fabs(factor_ee_doc[i] - factor_ee_hpc[i]) > 1.e-12) {
3558+
printf("i=%ld\n", i);
3559+
printf("factor_ee_doc=%f\n", factor_ee_doc[i]);
3560+
printf("factor_ee_hpc=%f\n", factor_ee_hpc[i]);
3561+
}
35463562
assert(fabs(factor_ee_doc[i] - factor_ee_hpc[i]) < 1.e-8);
35473563
}
35483564
}
@@ -4159,7 +4175,7 @@ assert(qmckl_jastrow_champ_provided(context));
41594175
{
41604176
printf("factor_ee_gl\n");
41614177
double fd[walk_num][4][elec_num];
4162-
double delta_x = 0.0001;
4178+
double delta_x = 0.001;
41634179

41644180
// Finite difference coefficients for gradients
41654181
double coef[9] = { 1.0/280.0, -4.0/105.0, 1.0/5.0, -4.0/5.0, 0.0, 4.0/5.0, -1.0/5.0, 4.0/105.0, -1.0/280.0 };
@@ -4248,14 +4264,20 @@ assert(qmckl_jastrow_champ_provided(context));
42484264
for (int nw = 0; nw < walk_num; nw++){
42494265
for (int i = 0; i < elec_num; i++) {
42504266
for (int k = 0; k < 3; k++){
4251-
printf("%.10f\t", fd[nw][k][i]);
4252-
printf("%.10f\n", factor_ee_gl[nw][k][i]);
4267+
if (fabs(fd[nw][k][i] - factor_ee_gl[nw][k][i]) > 1.e-12) {
4268+
printf("nw=%d i=%d k=%d\n", nw, i, k);
4269+
printf("fd=%f factor_ee_gl=%f\n", fd[nw][k][i], factor_ee_gl[nw][k][i]);
4270+
}
42534271
assert(fabs(fd[nw][k][i] - factor_ee_gl[nw][k][i]) < 1.e-8);
42544272
}
42554273
int k=3;
4274+
if (fabs(fd[nw][k][i] - factor_ee_gl[nw][k][i]) > 1.e-12) {
4275+
printf("nw=%d i=%d k=%d\n", nw, i, k);
4276+
printf("fd=%f factor_ee_gl=%f\n", fd[nw][k][i], factor_ee_gl[nw][k][i]);
4277+
}
42564278
printf("%.10f\t", fd[nw][k][i]);
42574279
printf("%.10f\n", factor_ee_gl[nw][k][i]);
4258-
assert(fabs(fd[nw][k][i] - factor_ee_gl[nw][k][i]) < 2.e-5);
4280+
assert(fabs(fd[nw][k][i] - factor_ee_gl[nw][k][i]) < 1.e-5);
42594281
}
42604282
}
42614283
printf("OK\n");
@@ -4309,7 +4331,9 @@ assert(qmckl_jastrow_champ_provided(context));
43094331
assert(rc == QMCKL_SUCCESS);
43104332

43114333
for (int64_t i = 0 ; i < walk_num*4*elec_num ; i++) {
4312-
printf("%ld %f %f\n", i, factor_ee_gl_hpc[i], factor_ee_gl_doc[i]);
4334+
if (fabs(factor_ee_gl_hpc[i] - factor_ee_gl_doc[i]) > 1.e-12) {
4335+
printf("i=%ld\nfactor_ee_gl_hpc=%f\nfactor_ee_gl_doc=%f\n", i, factor_ee_gl_hpc[i], factor_ee_gl_doc[i]);
4336+
}
43134337
assert(fabs(factor_ee_gl_hpc[i] - factor_ee_gl_doc[i]) < 1.e-8);
43144338
}
43154339
}
@@ -5002,6 +5026,9 @@ assert(fabs(en_distance_rescaled[0][0][6] - 0.4726452953409436) < 1.e-12);
50025026
assert(rc == QMCKL_SUCCESS);
50035027

50045028
for (int64_t i=0 ; i<walk_num*nucl_num*elec_num ; ++i) {
5029+
if (fabs(en_distance_rescaled_doc[i] - en_distance_rescaled_hpc[i]) > 1.e-12) {
5030+
printf("i = %ld, doc = %e, hpc = %e\n", i, en_distance_rescaled_doc[i], en_distance_rescaled_hpc[i]);
5031+
}
50055032
assert(fabs(en_distance_rescaled_doc[i] - en_distance_rescaled_hpc[i]) < 1.e-8);
50065033
}
50075034
}
@@ -5391,7 +5418,7 @@ assert(qmckl_electron_provided(context));
53915418
printf("en_distance_rescaled_gl\n");
53925419
double fd[walk_num][nucl_num][elec_num][4];
53935420

5394-
double delta_x = 0.0001;
5421+
double delta_x = 0.001;
53955422

53965423
// Finite difference coefficients for gradients
53975424
double coef[9] = { 1.0/280.0, -4.0/105.0, 1.0/5.0, -4.0/5.0, 0.0, 4.0/5.0, -1.0/5.0, 4.0/105.0, -1.0/280.0 };
@@ -6543,7 +6570,7 @@ assert(qmckl_jastrow_champ_provided(context));
65436570
{
65446571
printf("factor_en_gl\n");
65456572
double fd[walk_num][4][elec_num];
6546-
double delta_x = 0.0001;
6573+
double delta_x = 0.001;
65476574

65486575
// Finite difference coefficients for gradients
65496576
double coef[9] = { 1.0/280.0, -4.0/105.0, 1.0/5.0, -4.0/5.0, 0.0, 4.0/5.0, -1.0/5.0, 4.0/105.0, -1.0/280.0 };
@@ -6675,6 +6702,9 @@ assert(qmckl_jastrow_champ_provided(context));
66756702
assert(rc == QMCKL_SUCCESS);
66766703

66776704
for (int64_t i = 0; i < walk_num*4*elec_num; i++) {
6705+
if (fabs(factor_en_gl_doc[i] - factor_en_gl_hpc[i]) > 1.e-12) {
6706+
printf("i=%ld doc=%f hpc=%f\n", i, factor_en_gl_doc[i], factor_en_gl_hpc[i]);
6707+
}
66786708
assert(fabs(factor_en_gl_doc[i] - factor_en_gl_hpc[i]) < 1.e-8);
66796709
}
66806710
}
@@ -7852,8 +7882,10 @@ assert(qmckl_electron_provided(context));
78527882
assert(rc == QMCKL_SUCCESS);
78537883

78547884
for (int64_t i = 0; i < walk_num*(cord_num + 1)*elec_num*4*elec_num; i++) {
7855-
printf("i = %ld, doc = %e, hpc = %e\n", i, een_rescaled_e_gl_doc[i], een_rescaled_e_gl_hpc[i]);
7856-
assert(fabs(een_rescaled_e_gl_doc[i] - een_rescaled_e_gl_hpc[i]) < 1.e-10);
7885+
if (fabs(een_rescaled_e_gl_doc[i] - een_rescaled_e_gl_hpc[i]) > 1.e-12) {
7886+
printf("i = %ld, doc = %f, hpc = %f\n", i, een_rescaled_e_gl_doc[i], een_rescaled_e_gl_hpc[i]);
7887+
}
7888+
assert(fabs(een_rescaled_e_gl_doc[i] - een_rescaled_e_gl_hpc[i]) < 1.e-8);
78577889
}
78587890

78597891
}
@@ -7865,7 +7897,7 @@ assert(qmckl_electron_provided(context));
78657897

78667898
double fd[walk_num][cord_num+1][elec_num][4][elec_num];
78677899

7868-
double delta_x = 0.01;
7900+
double delta_x = 0.001;
78697901

78707902
// Finite difference coefficients for gradients
78717903
double coef[9] = { 1.0/280.0, -4.0/105.0, 1.0/5.0, -4.0/5.0, 0.0, 4.0/5.0, -1.0/5.0, 4.0/105.0, -1.0/280.0 };
@@ -11762,6 +11794,11 @@ TODO
1176211794
factor_een_gl_hpc);
1176311795

1176411796
for (int64_t i = 0; i < walk_num*4*elec_num; ++i) {
11797+
if (fabs(factor_een_gl_doc[i] - factor_een_gl_hpc[i]) > 1e-12) {
11798+
printf("i = %ld\n", i);
11799+
printf("factor_een_gl_doc = %20.15e\n", factor_een_gl_doc[i]);
11800+
printf("factor_een_gl_hpc = %20.15e\n", factor_een_gl_hpc[i]);
11801+
}
1176511802
assert(fabs(factor_een_gl_doc[i] - factor_een_gl_hpc[i]) < 1e-8);
1176611803
}
1176711804
}

0 commit comments

Comments
 (0)