Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
11 changes: 6 additions & 5 deletions source/source_hsolver/test/diago_bpcg_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -251,7 +252,7 @@ TEST(DiagoBPCGTest, readH)
// read Hamilt matrix from file data-H
std::vector<std::complex<double>> 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())
Expand Down
11 changes: 6 additions & 5 deletions source/source_hsolver/test/diago_cg_float_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -312,7 +313,7 @@ TEST(DiagoCGFloatTest, readH)
// read Hamilt matrix from file data-H
std::vector<std::complex<float>> 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())
Expand Down
11 changes: 6 additions & 5 deletions source/source_hsolver/test/diago_cg_real_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -289,7 +290,7 @@ TEST(DiagoCGTest, readH)
// read Hamilt matrix from file data-H
std::vector<double> 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())
Expand Down
11 changes: 6 additions & 5 deletions source/source_hsolver/test/diago_cg_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -307,7 +308,7 @@ TEST(DiagoCGTest, readH)
// read Hamilt matrix from file data-H
std::vector<std::complex<double>> 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())
Expand Down
2 changes: 1 addition & 1 deletion source/source_hsolver/test/diago_david_float_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ TEST(DiagoDavRealSystemTest,dataH)
{
std::vector<std::complex<float>> 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())
Expand Down
2 changes: 1 addition & 1 deletion source/source_hsolver/test/diago_david_real_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ TEST(DiagoDavRealSystemTest, dataH)
{
std::vector<double> 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())
Expand Down
2 changes: 1 addition & 1 deletion source/source_hsolver/test/diago_david_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ TEST(DiagoDavRealSystemTest, dataH)
{
std::vector<std::complex<double>> 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())
Expand Down
7 changes: 4 additions & 3 deletions source/source_hsolver/test/diago_lcao_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,10 @@ INSTANTIATE_TEST_SUITE_P(
DiagoPrepare<double>(0, 0, 32, 0, "genelpa", "H-GammaOnly-Si64.dat", "S-GammaOnly-Si64.dat"),
#endif
DiagoPrepare<double>(0, 0, 1, 0, "scalapack_gvx", "H-GammaOnly-Si2.dat", "S-GammaOnly-Si2.dat"),
DiagoPrepare<double>(0, 0, 32, 0, "scalapack_gvx", "H-GammaOnly-Si64.dat", "S-GammaOnly-Si64.dat"),
DiagoPrepare<double>(0, 0, 1, 0, "lapack", "H-GammaOnly-Si2.dat", "S-GammaOnly-Si2.dat"),
DiagoPrepare<double>(0, 0, 32, 0, "lapack", "H-GammaOnly-Si64.dat", "S-GammaOnly-Si64.dat")));
// DiagoPrepare<double>(0, 0, 32, 0, "scalapack_gvx", "H-GammaOnly-Si64.dat", "S-GammaOnly-Si64.dat"),
DiagoPrepare<double>(0, 0, 1, 0, "lapack", "H-GammaOnly-Si2.dat", "S-GammaOnly-Si2.dat")
// DiagoPrepare<double>(0, 0, 32, 0, "lapack", "H-GammaOnly-Si64.dat", "S-GammaOnly-Si64.dat")
));

class DiagoKPointsTest : public ::testing::TestWithParam<DiagoPrepare<std::complex<double>>>
{
Expand Down
Loading