Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in UnitTest #2306

Closed
PeizeLin opened this issue Apr 23, 2023 · 4 comments
Closed

Error in UnitTest #2306

PeizeLin opened this issue Apr 23, 2023 · 4 comments
Assignees
Labels
Bugs Bugs that only solvable with sufficient knowledge of DFT

Comments

@PeizeLin
Copy link
Collaborator

PeizeLin commented Apr 23, 2023

Describe the bug

g++

When compiled with

cmake -B build \
-DCMAKE_INSTALL_PREFIX=./bin \
-DCMAKE_CXX_COMPILER=g++ \
-DMPI_CXX_COMPILER=mpicxx \
-DELPA_DIR=/share/home/linpz/software/elpa/elpa-2021.11.002_OpenMP \
-DCEREAL_INCLUDE_DIR=/share/home/linpz/software/cereal/cereal-1.3.2 \
-DLibxc_DIR=/share/home/linpz/software/libxc/libxc-6.0.0-cmake \
-DBUILD_TESTING=1 \
-DGTest_DIR=/share/home/linpz/software/gtest/googletest

Compilation errors are
make_err.txt

icpc

When compiled with

cmake -B build \
-DCMAKE_INSTALL_PREFIX=./bin \
-DCMAKE_CXX_COMPILER=icpc \
-DMPI_CXX_COMPILER=mpiicpc \
-DELPA_DIR=/share/home/linpz/software/elpa/elpa-2021.11.002_OpenMP \
-DCEREAL_INCLUDE_DIR=/share/home/linpz/software/cereal/cereal-1.3.2 \
-DLibxc_DIR=/share/home/linpz/software/libxc/libxc-6.0.0-cmake \
-DBUILD_TESTING=1 \
-DGTest_DIR=/share/home/linpz/software/gtest/googletest

Compilation is successful. And unittests failed
ctest_log.txt

Expected behavior

No response

To Reproduce

No response

Environment

Linux 3.10.0-1160.el7.x86_64, Red Hat 4.8.5-44
gcc 10.2.0 / icpc 2021.5.0
intelmpi 2021.5
mkl 2021.5
elpa_openmp 2021.11.002
cereal 1.3.2
libxc 6.0.0

Additional Context

No response

@PeizeLin PeizeLin added the Bugs Bugs that only solvable with sufficient knowledge of DFT label Apr 23, 2023
@baixiaokuang
Copy link

baixiaokuang commented May 15, 2023

You should run cmake --install build before running UT tests.

@hongriTianqi
Copy link

Hi @PeizeLin, do you still meet unit test errors? Please let me know. Thanks.

@hongriTianqi
Copy link

Hi @PeizeLin, this issue will be closed since we haven't received updates from you since May15. If this issue persists, please feel free to reopen this issue again and let us know. Thank you!

@hongriTianqi
Copy link

Hi @PeizeLin , for your information, I have submitted a new PR #2836 to show how to compile and run unit tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugs Bugs that only solvable with sufficient knowledge of DFT
Projects
No open projects
Archived in project
Development

No branches or pull requests

5 participants