-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4442 from Hyeondeok-Shin/deterministic_test
Remove all QMC_CUDA dependencies on testsets
- Loading branch information
Showing
54 changed files
with
7,329 additions
and
8,319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
# add tests for GPAW4QMCPACK converter | ||
file(CREATE_LINK ${CMAKE_CURRENT_SOURCE_DIR}/gpaw4qmcpack_test.py ${CMAKE_CURRENT_BINARY_DIR}/gpaw4qmcpack_test.py SYMBOLIC) | ||
file(CREATE_LINK ${CMAKE_CURRENT_SOURCE_DIR}/gpaw4qmcpack_test.py ${CMAKE_CURRENT_BINARY_DIR}/gpaw4qmcpack_test.py | ||
SYMBOLIC) | ||
function(ADD_GPAW4QMCPACK_TEST test_name) | ||
set(EXE_NAME "${PROJECT_SOURCE_DIR}/src/QMCTools/gpaw4qmcpack.py") | ||
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${test_name}") | ||
file(CREATE_LINK "${CMAKE_CURRENT_SOURCE_DIR}/${test_name}/restart.gpw" | ||
"${CMAKE_CURRENT_BINARY_DIR}/${test_name}/restart.gpw" SYMBOLIC) | ||
"${CMAKE_CURRENT_BINARY_DIR}/${test_name}/restart.gpw" SYMBOLIC) | ||
file(CREATE_LINK "${CMAKE_CURRENT_SOURCE_DIR}/${test_name}/gold.orbs.h5" | ||
"${CMAKE_CURRENT_BINARY_DIR}/${test_name}/gold.orbs.h5" SYMBOLIC) | ||
add_test(NAME gpaw4qmcpack_test COMMAND "${CMAKE_CURRENT_BINARY_DIR}/gpaw4qmcpack_test.py" | ||
"${CMAKE_CURRENT_BINARY_DIR}/${test_name}" | ||
--exe "${EXE_NAME}" --h5diff "${HDF5_DIFF_EXECUTABLE}") | ||
set_tests_properties(gpaw4qmcpack_test PROPERTIES | ||
FAIL_REGULAR_EXPRESSION " FAIL" | ||
PASS_REGULAR_EXPRESSION " pass" | ||
TIMEOUT 120 LABELS "converter;deterministic") | ||
"${CMAKE_CURRENT_BINARY_DIR}/${test_name}/gold.orbs.h5" SYMBOLIC) | ||
add_test(NAME gpaw4qmcpack_test | ||
COMMAND "${CMAKE_CURRENT_BINARY_DIR}/gpaw4qmcpack_test.py" "${CMAKE_CURRENT_BINARY_DIR}/${test_name}" --exe | ||
"${EXE_NAME}" --h5diff "${HDF5_DIFF_EXECUTABLE}") | ||
set_tests_properties( | ||
gpaw4qmcpack_test | ||
PROPERTIES FAIL_REGULAR_EXPRESSION | ||
" FAIL" | ||
PASS_REGULAR_EXPRESSION | ||
" pass" | ||
TIMEOUT | ||
120 | ||
LABELS | ||
"converter;deterministic") | ||
endfunction() | ||
add_gpaw4qmcpack_test(test_Si_diamond) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
if(NOT QMC_CUDA) | ||
if(NOT MIXED_PRECISION) | ||
simple_run_and_check(deterministic-heg2d-4_ae-deriv "${qmcpack_SOURCE_DIR}/tests/heg/heg2d_4" deriv.xml 1 1 | ||
check_deriv.py) | ||
|
||
simple_run_and_check(deterministic-heg2d-4_ae-grad_lap "${qmcpack_SOURCE_DIR}/tests/heg/heg2d_4" grad_lap.xml 1 1 | ||
check_grad_lap.py) | ||
|
||
else() | ||
message(VERBOSE "Skipping eg2d derivative tests in mixed precision (QMC_MIXED_PRECISION=1)") | ||
endif(NOT MIXED_PRECISION) | ||
if(NOT MIXED_PRECISION) | ||
simple_run_and_check(deterministic-heg2d-4_ae-deriv "${qmcpack_SOURCE_DIR}/tests/heg/heg2d_4" deriv.xml 1 1 | ||
check_deriv.py) | ||
|
||
simple_run_and_check(deterministic-heg2d-4_ae-grad_lap "${qmcpack_SOURCE_DIR}/tests/heg/heg2d_4" grad_lap.xml 1 1 | ||
check_grad_lap.py) | ||
|
||
else() | ||
message(VERBOSE "Skipping eg2d derivative tests because they are not supported by CUDA build (QMC_CUDA=1)") | ||
endif(NOT QMC_CUDA) | ||
message(VERBOSE "Skipping eg2d derivative tests in mixed precision (QMC_MIXED_PRECISION=1)") | ||
endif(NOT MIXED_PRECISION) |
Oops, something went wrong.