Skip to content

Commit 7154031

Browse files
authored
Merge pull request #995 from pxlxingliang/develop
test(cusolver): do not run elpa/scalapack in the UT of Cusolver
2 parents 908957a + 4339aed commit 7154031

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/src_pdiag/test/diago_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ class DiagoPrepare : public Pdiag_Double
216216
na_row = orb_con.ParaV.nrow;
217217
na_col = orb_con.ParaV.ncol;
218218
icontext = orb_con.ParaV.blacs_ctxt;
219-
std::cout << "orb_con.ParaV.nb=" << orb_con.ParaV.nb << " " << GlobalV::NB2D<< std::endl;
220219
nb2d = orb_con.ParaV.nb;
221220
}
222221

@@ -385,6 +384,7 @@ TEST_P(DiagoTest, LCAO)
385384
}
386385
}
387386

387+
#ifndef __CUSOLVER_LCAO
388388
INSTANTIATE_TEST_SUITE_P(
389389
ElpaDoubleTest,
390390
DiagoTest,
@@ -395,7 +395,7 @@ INSTANTIATE_TEST_SUITE_P(
395395
ElpaComplexDoubleTest,
396396
DiagoTest,
397397
::testing::Values( //int nlocal, int nbands, int nb2d, int sparsity, bool gamma_only, std::string ks_solver, bool readhs
398-
DiagoPrepare(0, 0, 1, 0, false, "genelpa", "H-KPoints-large.dat", "S-KPoints-large.dat")));
398+
DiagoPrepare(0, 0, 1, 0, false, "genelpa", "H-KPoints.dat", "S-KPoints.dat")));
399399

400400
INSTANTIATE_TEST_SUITE_P(
401401
ScalapackDoubleTest,
@@ -415,7 +415,7 @@ INSTANTIATE_TEST_SUITE_P(
415415
DiagoPrepare(0, 0, 1, 0, false, "scalapack_gvx", "H-KPoints-large.dat", "S-KPoints-large.dat")
416416
));
417417

418-
#ifdef __CUSOLVER_LCAO
418+
#else
419419
INSTANTIATE_TEST_SUITE_P(
420420
CusolverDoubleTest,
421421
DiagoTest,

0 commit comments

Comments
 (0)