diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9322eba82f..1dd109d45d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -81,7 +81,7 @@ jobs: GTEST_COLOR: 'yes' OMP_NUM_THREADS: '2' run: | - ctest --test-dir build -V --timeout 1700 -R MODULE_HSOLVER + ctest --test-dir build -V --timeout 1700 -R MODULE_HSOLVER -E PERF_MODULE_HSOLVER_KERNELS - name: Module_Cell Unittests env: diff --git a/source/source_hsolver/test/diago_bpcg_test.cpp b/source/source_hsolver/test/diago_bpcg_test.cpp index f36a09dafe..962ce72315 100644 --- a/source/source_hsolver/test/diago_bpcg_test.cpp +++ b/source/source_hsolver/test/diago_bpcg_test.cpp @@ -201,10 +201,11 @@ INSTANTIATE_TEST_SUITE_P(VerifyCG, DiagoBPCGTest, ::testing::Values( // nband, npw, sparsity, reorder, eps, maxiter, threshold - DiagoBPCGPrepare(10, 500, 0, true, 1e-5, 300, 5e-2), - DiagoBPCGPrepare(20, 500, 6, true, 1e-5, 300, 5e-2), - DiagoBPCGPrepare(20, 1000, 8, true, 1e-5, 300, 5e-2), - DiagoBPCGPrepare(40, 1000, 8, true, 1e-6, 300, 5e-2))); + DiagoBPCGPrepare(10, 500, 0, true, 1e-5, 300, 5e-2) + // DiagoBPCGPrepare(20, 500, 6, true, 1e-5, 300, 5e-2) + // DiagoBPCGPrepare(20, 1000, 8, true, 1e-5, 300, 5e-2), + // DiagoBPCGPrepare(40, 1000, 8, true, 1e-6, 300, 5e-2) + )); //DiagoBPCGPrepare(40, 2000, 8, true, 1e-5, 500, 1e-2))); // the last one is passed but time-consumming. @@ -251,7 +252,7 @@ TEST(DiagoBPCGTest, readH) // read Hamilt matrix from file data-H std::vector> hm; std::ifstream ifs; - std::string filename = "H-KPoints-Si64.dat"; + std::string filename = "H-KPoints-Si2.dat"; ifs.open(filename); // open file and check status if (!ifs.is_open()) diff --git a/source/source_hsolver/test/diago_cg_float_test.cpp b/source/source_hsolver/test/diago_cg_float_test.cpp index 9af83f174c..4c4278b3f1 100644 --- a/source/source_hsolver/test/diago_cg_float_test.cpp +++ b/source/source_hsolver/test/diago_cg_float_test.cpp @@ -239,10 +239,11 @@ INSTANTIATE_TEST_SUITE_P(VerifyCG, DiagoCGFloatTest, ::testing::Values( // nband, npw, sparsity, reorder, eps, maxiter, threshold - DiagoCGPrepare(10, 200, 0, true, 1e-6, 300, 1e-0), - DiagoCGPrepare(10, 200, 6, true, 1e-6, 300, 1e-0), - DiagoCGPrepare(10, 400, 8, true, 1e-6, 300, 1e-0), - DiagoCGPrepare(10, 600, 8, true, 1e-6, 300, 1e-0))); + DiagoCGPrepare(10, 200, 0, true, 1e-6, 300, 1e-0) + // DiagoCGPrepare(10, 200, 6, true, 1e-6, 300, 1e-0) + // DiagoCGPrepare(10, 400, 8, true, 1e-6, 300, 1e-0), + // DiagoCGPrepare(10, 600, 8, true, 1e-6, 300, 1e-0) + )); //DiagoCGPrepare(40, 2000, 8, true, 1e-5, 500, 1e-2))); // the last one is passed but time-consumming. @@ -312,7 +313,7 @@ TEST(DiagoCGFloatTest, readH) // read Hamilt matrix from file data-H std::vector> hm; std::ifstream ifs; - std::string filename = "H-KPoints-Si64.dat"; + std::string filename = "H-KPoints-Si2.dat"; // open file and check status ifs.open(filename); if (!ifs.is_open()) diff --git a/source/source_hsolver/test/diago_cg_real_test.cpp b/source/source_hsolver/test/diago_cg_real_test.cpp index 46b3971561..dbcbe95ae8 100644 --- a/source/source_hsolver/test/diago_cg_real_test.cpp +++ b/source/source_hsolver/test/diago_cg_real_test.cpp @@ -240,10 +240,11 @@ INSTANTIATE_TEST_SUITE_P(VerifyCG, DiagoCGTest, ::testing::Values( // nband, npw, sparsity, reorder, eps, maxiter, threshold - DiagoCGPrepare(10, 500, 0, true, 1e-5, 300, 1e-3), - DiagoCGPrepare(20, 500, 6, true, 1e-5, 300, 1e-3), - DiagoCGPrepare(20, 1000, 8, true, 1e-5, 300, 1e-3), - DiagoCGPrepare(40, 1000, 8, true, 1e-6, 300, 1e-3))); + DiagoCGPrepare(10, 500, 0, true, 1e-5, 300, 1e-3) + // DiagoCGPrepare(20, 500, 6, true, 1e-5, 300, 1e-3) + // DiagoCGPrepare(20, 1000, 8, true, 1e-5, 300, 1e-3), + // DiagoCGPrepare(40, 1000, 8, true, 1e-6, 300, 1e-3) + )); //DiagoCGPrepare(40, 2000, 8, true, 1e-5, 500, 1e-2))); // the last one is passed but time-consumming. @@ -289,7 +290,7 @@ TEST(DiagoCGTest, readH) // read Hamilt matrix from file data-H std::vector hm; std::ifstream ifs; - std::string filename = "H-GammaOnly-Si64.dat"; + std::string filename = "H-GammaOnly-Si2.dat"; ifs.open(filename); // open file and check status if (!ifs.is_open()) diff --git a/source/source_hsolver/test/diago_cg_test.cpp b/source/source_hsolver/test/diago_cg_test.cpp index d360e47e53..b3518205f0 100644 --- a/source/source_hsolver/test/diago_cg_test.cpp +++ b/source/source_hsolver/test/diago_cg_test.cpp @@ -234,10 +234,11 @@ INSTANTIATE_TEST_SUITE_P(VerifyCG, DiagoCGTest, ::testing::Values( // nband, npw, sparsity, reorder, eps, maxiter, threshold - DiagoCGPrepare(10, 500, 0, true, 1e-5, 300, 1e-3), - DiagoCGPrepare(20, 500, 6, true, 1e-5, 300, 1e-3), - DiagoCGPrepare(20, 1000, 8, true, 1e-5, 300, 1e-3), - DiagoCGPrepare(40, 1000, 8, true, 1e-6, 300, 1e-3))); + DiagoCGPrepare(10, 500, 0, true, 1e-5, 300, 1e-3) + // DiagoCGPrepare(20, 500, 6, true, 1e-5, 300, 1e-3) + // DiagoCGPrepare(20, 1000, 8, true, 1e-5, 300, 1e-3), + // DiagoCGPrepare(40, 1000, 8, true, 1e-6, 300, 1e-3) + )); //DiagoCGPrepare(40, 2000, 8, true, 1e-5, 500, 1e-2))); // the last one is passed but time-consumming. @@ -307,7 +308,7 @@ TEST(DiagoCGTest, readH) // read Hamilt matrix from file data-H std::vector> hm; std::ifstream ifs; - std::string filename = "H-KPoints-Si64.dat"; + std::string filename = "H-KPoints-Si2.dat"; ifs.open(filename); // open file and check status if (!ifs.is_open()) diff --git a/source/source_hsolver/test/diago_david_float_test.cpp b/source/source_hsolver/test/diago_david_float_test.cpp index 76c5226ce3..cba4186617 100644 --- a/source/source_hsolver/test/diago_david_float_test.cpp +++ b/source/source_hsolver/test/diago_david_float_test.cpp @@ -197,7 +197,7 @@ TEST(DiagoDavRealSystemTest,dataH) { std::vector> hmatrix; std::ifstream ifs; - std::string filename = "H-KPoints-Si64.dat"; + std::string filename = "H-KPoints-Si2.dat"; ifs.open(filename); // open file and check status if (!ifs.is_open()) diff --git a/source/source_hsolver/test/diago_david_real_test.cpp b/source/source_hsolver/test/diago_david_real_test.cpp index 77a64dcd01..e0f887a573 100644 --- a/source/source_hsolver/test/diago_david_real_test.cpp +++ b/source/source_hsolver/test/diago_david_real_test.cpp @@ -195,7 +195,7 @@ TEST(DiagoDavRealSystemTest, dataH) { std::vector hmatrix; std::ifstream ifs; - std::string filename = "H-GammaOnly-Si64.dat"; + std::string filename = "H-GammaOnly-Si2.dat"; ifs.open(filename); // open file and check status if (!ifs.is_open()) diff --git a/source/source_hsolver/test/diago_david_test.cpp b/source/source_hsolver/test/diago_david_test.cpp index 6239be7a2e..c6472ada4f 100644 --- a/source/source_hsolver/test/diago_david_test.cpp +++ b/source/source_hsolver/test/diago_david_test.cpp @@ -201,7 +201,7 @@ TEST(DiagoDavRealSystemTest, dataH) { std::vector> hmatrix; std::ifstream ifs; - std::string filename = "H-KPoints-Si64.dat"; + std::string filename = "H-KPoints-Si2.dat"; ifs.open(filename); // open file and check status if (!ifs.is_open()) diff --git a/source/source_hsolver/test/diago_lcao_test.cpp b/source/source_hsolver/test/diago_lcao_test.cpp index 69e4fab3bf..d0ed0fdae6 100644 --- a/source/source_hsolver/test/diago_lcao_test.cpp +++ b/source/source_hsolver/test/diago_lcao_test.cpp @@ -333,9 +333,10 @@ INSTANTIATE_TEST_SUITE_P( DiagoPrepare(0, 0, 32, 0, "genelpa", "H-GammaOnly-Si64.dat", "S-GammaOnly-Si64.dat"), #endif DiagoPrepare(0, 0, 1, 0, "scalapack_gvx", "H-GammaOnly-Si2.dat", "S-GammaOnly-Si2.dat"), - DiagoPrepare(0, 0, 32, 0, "scalapack_gvx", "H-GammaOnly-Si64.dat", "S-GammaOnly-Si64.dat"), - DiagoPrepare(0, 0, 1, 0, "lapack", "H-GammaOnly-Si2.dat", "S-GammaOnly-Si2.dat"), - DiagoPrepare(0, 0, 32, 0, "lapack", "H-GammaOnly-Si64.dat", "S-GammaOnly-Si64.dat"))); + // DiagoPrepare(0, 0, 32, 0, "scalapack_gvx", "H-GammaOnly-Si64.dat", "S-GammaOnly-Si64.dat"), + DiagoPrepare(0, 0, 1, 0, "lapack", "H-GammaOnly-Si2.dat", "S-GammaOnly-Si2.dat") + // DiagoPrepare(0, 0, 32, 0, "lapack", "H-GammaOnly-Si64.dat", "S-GammaOnly-Si64.dat") + )); class DiagoKPointsTest : public ::testing::TestWithParam>> {