-
Notifications
You must be signed in to change notification settings - Fork 139
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 #3086 from QMCPACK/rc_3110
Rc 3110
- Loading branch information
Showing
1,682 changed files
with
103,600 additions
and
115,136 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
|
||
name: GitHub Actions CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
pull_request: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
|
||
linux: | ||
runs-on: ubuntu-latest | ||
container: ${{ matrix.container }} | ||
env: | ||
GH_JOBNAME: ${{ matrix.jobname }} | ||
GH_OS: Linux | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
jobname: [ | ||
gcc-openmpi-real-coverage, | ||
gcc-openmpi-complex-coverage, | ||
clang-openmpi-real-asan, | ||
clang-openmpi-real-ubsan | ||
] | ||
include: | ||
- jobname: gcc-openmpi-real-coverage | ||
container: | ||
image: williamfgc/qmcpack-ci:ubuntu20-openmpi | ||
options: -u 1001 | ||
|
||
- jobname: gcc-openmpi-complex-coverage | ||
container: | ||
image: williamfgc/qmcpack-ci:ubuntu20-openmpi | ||
options: -u 1001 | ||
|
||
- jobname: clang-openmpi-real-asan | ||
container: | ||
image: williamfgc/qmcpack-ci:ubuntu20-openmpi | ||
options: -u 1001 | ||
|
||
- jobname: clang-openmpi-real-ubsan | ||
container: | ||
image: williamfgc/qmcpack-ci:ubuntu20-openmpi | ||
options: -u 1001 | ||
|
||
steps: | ||
- name: Checkout Action | ||
uses: actions/checkout@v1 | ||
|
||
- name: Configure | ||
run: tests/test_automation/github-actions/ci/run_step.sh configure | ||
|
||
- name: Build | ||
run: tests/test_automation/github-actions/ci/run_step.sh build | ||
|
||
- name: Test | ||
run: tests/test_automation/github-actions/ci/run_step.sh test | ||
|
||
- name: Coverage | ||
if: contains(matrix.jobname, 'coverage') | ||
run: tests/test_automation/github-actions/ci/run_step.sh coverage | ||
|
||
- name: Upload Coverage | ||
if: contains(matrix.jobname, 'coverage') | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
file: ../qmcpack-build/coverage.xml | ||
flags: tests-deterministic # optional | ||
name: codecov-QMCPACK # optional | ||
fail_ci_if_error: true # optional (default = false) |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Check if AVX512 is activated in the compilation | ||
# Since cross-compiling is not unusual on HPC systems (Cray), | ||
# try_compile is robust against | ||
try_compile(CXX_COMPILER_HAVE_AVX512_MACRO ${CMAKE_BINARY_DIR} | ||
${PROJECT_CMAKE}/try_compile_sources/check_AVX512.cpp | ||
CMAKE_FLAGS "${CMAKE_CXX_FLAGS}") | ||
|
||
if (CXX_COMPILER_HAVE_AVX512_MACRO) | ||
set(default_alignment 64) | ||
else() | ||
set(default_alignment 32) | ||
endif() |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Locate QE via the patched pw2qmcpack.x | ||
# Require both to be present to consider QE_FOUND | ||
# Take QE_BIN as hint for location | ||
|
||
FIND_PATH(QE_PW_DIR pw.x HINTS ${QE_BIN}) | ||
FIND_PATH(QE_PW2Q_DIR pw2qmcpack.x HINTS ${QE_BIN}) | ||
|
||
SET(QE_FOUND FALSE) | ||
IF(QE_PW2Q_DIR AND QE_PW_DIR) | ||
IF ( NOT (QE_PW2Q_DIR STREQUAL QE_PW_DIR) ) | ||
MESSAGE(WARNING "Found pw.x and pw2qmcpack.x in different locations, ${QE_PW_DIR} and ${QE_PW2Q_DIR}, verify this is intentional.") | ||
ENDIF() | ||
#MESSAGE(STATUS "QE_PW2Q_DIR=${QE_PW2Q_DIR}") | ||
#MESSAGE(STATUS "QE_PW_DIR=${QE_PW_DIR}") | ||
SET(QE_FOUND TRUE) | ||
ENDIF() | ||
|
||
MARK_AS_ADVANCED( | ||
QE_PW2Q_DIR | ||
QE_PW_DIR | ||
QE_FOUND | ||
) |
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
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
|
||
# Test that the compiler is configured with a C++17 standard library | ||
|
||
set(TEST_CXX17_SOURCE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/try_cxx17_library.cpp) | ||
file(WRITE ${TEST_CXX17_SOURCE} | ||
"// Test for C++17 standard library support | ||
#include <variant> | ||
#include <string> | ||
int main(int argc, char **argv) | ||
{ | ||
std::variant<int, float, std::string> intFloatString; | ||
return 0; | ||
} | ||
") | ||
|
||
|
||
try_compile(CXX17_LIBRARY_OKAY ${CMAKE_BINARY_DIR} | ||
${TEST_CXX17_SOURCE} | ||
CXX_STANDARD 17 | ||
CXX_STANDARD_REQUIRED ON | ||
OUTPUT_VARIABLE COMPILE_OUTPUT) | ||
|
||
|
||
if (NOT CXX17_LIBRARY_OKAY) | ||
set(COMPILE_FAIL_OUTPUT cpp17_compile_fail.txt) | ||
file(WRITE "${CMAKE_BINARY_DIR}/${COMPILE_FAIL_OUTPUT}" "${COMPILE_OUTPUT}") | ||
|
||
message(STATUS "C++17 standard library support not found") | ||
message("compiler is ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}") | ||
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU") | ||
message("Compiler detected is g++.\n Use version 7.0 or newer for C++17 standard library support.") | ||
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
message("Compiler detected is clang++.\n If not using libcxx, ensure a g++ version greater than 7.0 is also on the path so that its C++17 library can be used.") | ||
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Intel") | ||
message("Compiler detected is icpc.\n Ensure a gcc version greater than 7.0 is also on the path so that its C++17 library can be used. Or use the -cxxlib switch to point to a newer gcc install.") | ||
endif() | ||
message(" Output of test compile is in ${COMPILE_FAIL_OUTPUT}") | ||
message(FATAL_ERROR "stopping") | ||
else() | ||
message(STATUS "C++17 standard library supported") | ||
endif() |
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
Oops, something went wrong.