Skip to content
Merged
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
117 changes: 50 additions & 67 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,19 +118,14 @@ noether-cpu:
- export DEAL_II_ROOT_DIR=/projects/dealii DEAL_II_DIR=/projects/dealii/install
- echo "-------------- deal.II -------------" && git -C $DEAL_II_ROOT_DIR -c safe.directory=$DEAL_II_ROOT_DIR describe --always
- make -k -j$NPROC_CPU BACKENDS="$BACKENDS_CPU" JUNIT_BATCH="cpu" junit search=dealii DEAL_II_DIR=$DEAL_II_DIR
# Report status
# Coverage
- lcov --directory . --capture --gcov-tool $GCOV --output-file coverage.info --no-external --exclude '/usr/include/*' --rc geninfo_unexecuted_blocks=1 --verbose --demangle-cpp --substitute 's#(^|/)(?!tests/)([^/]+)/(t[^/]+-f\.[^/]+)$#$1$2/tests/$3#g' --substitute 's#([^/]+)/(?<!examples/ceed/)(ex[^/]+-f\.[^/]+)$#$1/examples/ceed/$2#g' --ignore-errors inconsistent --ignore-errors unused,unused
# Load the virtual environment with codecovcli
- source /projects/.venv_libceed_ci/bin/activate
- export GIT_BRANCH=$CI_COMMIT_REF_NAME
- export CODECOV_NAME=$CI_JOB_NAME
- codecov-cli --verbose upload-coverage -f coverage.info --git-service github -t "${CODECOV_ACCESS_TOKEN}" --plugin noop --slug CEED/libCEED -B "${GIT_BRANCH}" -C "${CI_COMMIT_SHA}" -n "${CODECOV_NAME}"
- touch .SUCCESS
after_script:
- |
if [ -f .SUCCESS ]; then
source job.env;
lcov --directory . --capture --gcov-tool $GCOV --output-file coverage.info --no-external --exclude '/usr/include/*' --rc geninfo_unexecuted_blocks=1 --verbose --demangle-cpp --substitute 's#(^|/)(?!tests/)([^/]+)/(t[^/]+-f\.[^/]+)$#$1$2/tests/$3#g' --substitute 's#([^/]+)/(?<!examples/ceed/)(ex[^/]+-f\.[^/]+)$#$1/examples/ceed/$2#g' --ignore-errors inconsistent --ignore-errors unused,unused
# Load the virtual environment with codecovcli
source /projects/.venv_libceed_ci/bin/activate
export GIT_BRANCH=$CI_COMMIT_REF_NAME
export CODECOV_NAME=$CI_JOB_NAME
codecov-cli --verbose upload-coverage -f coverage.info --git-service github -t "${CODECOV_ACCESS_TOKEN}" --plugin noop --slug CEED/libCEED -B "${GIT_BRANCH}" -C "${CI_COMMIT_SHA}" -n "${CODECOV_NAME}"
fi
artifacts:
paths:
- build/*.junit
Expand Down Expand Up @@ -189,18 +184,14 @@ noether-cpu-static:
- make -k -j$((NPROC_CPU / NPROC_POOL)) BACKENDS="$BACKENDS_CPU" JUNIT_BATCH="cpu-static" junit search=mfem
# -- deal.II 8bd5c262f13e15793aa206b6eed8774a9b25ce11
# TODO: Figure out how to use pkgconfig correctly in CMake
# Coverage
- lcov --directory . --capture --gcov-tool $GCOV --output-file coverage.info --no-external --exclude '/usr/include/*' --rc geninfo_unexecuted_blocks=1 --verbose --demangle-cpp --substitute 's#(^|/)(?!tests/)([^/]+)/(t[^/]+-f\.[^/]+)$#$1$2/tests/$3#g' --substitute 's#([^/]+)/(?<!examples/ceed/)(ex[^/]+-f\.[^/]+)$#$1/examples/ceed/$2#g' --ignore-errors inconsistent --ignore-errors unused,unused
# Load the virtual environment with codecovcli
- source /projects/.venv_libceed_ci/bin/activate
- export GIT_BRANCH=$CI_COMMIT_REF_NAME
- export CODECOV_NAME=$CI_JOB_NAME
- codecov-cli --verbose upload-coverage -f coverage.info --git-service github -t "${CODECOV_ACCESS_TOKEN}" --plugin noop --slug CEED/libCEED -B "${GIT_BRANCH}" -C "${CI_COMMIT_SHA}" -n "${CODECOV_NAME}"
- touch .SUCCESS
after_script:
- |
if [ -f .SUCCESS ]; then
source job.env;
lcov --directory . --capture --gcov-tool $GCOV --output-file coverage.info --no-external --exclude '/usr/include/*' --rc geninfo_unexecuted_blocks=1 --verbose --demangle-cpp --substitute 's#(^|/)(?!tests/)([^/]+)/(t[^/]+-f\.[^/]+)$#$1$2/tests/$3#g' --substitute 's#([^/]+)/(?<!examples/ceed/)(ex[^/]+-f\.[^/]+)$#$1/examples/ceed/$2#g' --ignore-errors inconsistent --ignore-errors unused,unused
# Load the virtual environment with codecovcli
source /projects/.venv_libceed_ci/bin/activate
export GIT_BRANCH=$CI_COMMIT_REF_NAME
export CODECOV_NAME=$CI_JOB_NAME
codecov-cli --verbose upload-coverage -f coverage.info --git-service github -t "${CODECOV_ACCESS_TOKEN}" --plugin noop --slug CEED/libCEED -B "${GIT_BRANCH}" -C "${CI_COMMIT_SHA}" -n "${CODECOV_NAME}"
fi
artifacts:
paths:
- build/*.junit
Expand Down Expand Up @@ -285,19 +276,15 @@ noether-rust-qfunctions:
# Need clang++ to resolve to clang++-22, since clang++-21 doesn't support CUDA 13
- export PATH=/usr/lib/llvm-22/bin:$PATH
- make -k -j$((NPROC_GPU / NPROC_POOL)) JUNIT_BATCH="rust-qfunction" junit search=rustqfunction
# Coverage
- lcov --directory . --capture --gcov-tool $GCOV --output-file coverage.info --no-external --exclude '/usr/include/*' --rc geninfo_unexecuted_blocks=1 --verbose --demangle-cpp --substitute 's#(^|/)(?!tests/)([^/]+)/(t[^/]+-f\.[^/]+)$#$1$2/tests/$3#g' --substitute 's#([^/]+)/(?<!examples/ceed/)(ex[^/]+-f\.[^/]+)$#$1/examples/ceed/$2#g' --ignore-errors inconsistent --ignore-errors unused,unused
# Load the virtual environment with codecovcli
- source /projects/.venv_libceed_ci/bin/activate
- export GIT_BRANCH=$CI_COMMIT_REF_NAME
- export CODECOV_NAME=$CI_JOB_NAME
- codecov-cli --verbose upload-coverage -f coverage.info --git-service github -t "${CODECOV_ACCESS_TOKEN}" --plugin noop --slug CEED/libCEED -B "${GIT_BRANCH}" -C "${CI_COMMIT_SHA}" -n "${CODECOV_NAME}"
# Report status
- touch .SUCCESS
after_script:
- |
if [ -f .SUCCESS ]; then
source job.env;
lcov --directory . --capture --gcov-tool $GCOV --output-file coverage.info --no-external --exclude '/usr/include/*' --rc geninfo_unexecuted_blocks=1 --verbose --demangle-cpp --substitute 's#(^|/)(?!tests/)([^/]+)/(t[^/]+-f\.[^/]+)$#$1$2/tests/$3#g' --substitute 's#([^/]+)/(?<!examples/ceed/)(ex[^/]+-f\.[^/]+)$#$1/examples/ceed/$2#g' --ignore-errors inconsistent --ignore-errors unused,unused
# Load the virtual environment with codecovcli
source /projects/.venv_libceed_ci/bin/activate
export GIT_BRANCH=$CI_COMMIT_REF_NAME
export CODECOV_NAME=$CI_JOB_NAME
codecov-cli --verbose upload-coverage -f coverage.info --git-service github -t "${CODECOV_ACCESS_TOKEN}" --plugin noop --slug CEED/libCEED -B "${GIT_BRANCH}" -C "${CI_COMMIT_SHA}" -n "${CODECOV_NAME}"
fi
artifacts:
paths:
- build/*.junit
Expand Down Expand Up @@ -381,19 +368,15 @@ noether-cuda:
# Clang-tidy
- echo "-------------- clang-tidy ----------" && clang-tidy --version
- TIDY_OPTS="-fix-errors -warnings-as-errors=" make -j$NPROC_CPU tidy
# Coverage
- lcov --directory . --capture --gcov-tool $GCOV --output-file coverage.info --no-external --exclude '/usr/include/*' --rc geninfo_unexecuted_blocks=1 --verbose --demangle-cpp --substitute 's#(^|/)(?!tests/)([^/]+)/(t[^/]+-f\.[^/]+)$#$1$2/tests/$3#g' --substitute 's#([^/]+)/(?<!examples/ceed/)(ex[^/]+-f\.[^/]+)$#$1/examples/ceed/$2#g' --ignore-errors inconsistent --ignore-errors unused,unused
# Load the virtual environment with codecovcli
- source /projects/.venv_libceed_ci/bin/activate
- export GIT_BRANCH=$CI_COMMIT_REF_NAME
- export CODECOV_NAME=$CI_JOB_NAME
- codecov-cli --verbose upload-coverage -f coverage.info --git-service github -t "${CODECOV_ACCESS_TOKEN}" --plugin noop --slug CEED/libCEED -B "${GIT_BRANCH}" -C "${CI_COMMIT_SHA}" -n "${CODECOV_NAME}"
# Report status
- touch .SUCCESS
after_script:
- |
if [ -f .SUCCESS ]; then
source job.env;
lcov --directory . --capture --gcov-tool $GCOV --output-file coverage.info --no-external --exclude '/usr/include/*' --rc geninfo_unexecuted_blocks=1 --verbose --demangle-cpp --substitute 's#(^|/)(?!tests/)([^/]+)/(t[^/]+-f\.[^/]+)$#$1$2/tests/$3#g' --substitute 's#([^/]+)/(?<!examples/ceed/)(ex[^/]+-f\.[^/]+)$#$1/examples/ceed/$2#g' --ignore-errors inconsistent --ignore-errors unused,unused
# Load the virtual environment with codecovcli
source /projects/.venv_libceed_ci/bin/activate
export GIT_BRANCH=$CI_COMMIT_REF_NAME
export CODECOV_NAME=$CI_JOB_NAME
codecov-cli --verbose upload-coverage -f coverage.info --git-service github -t "${CODECOV_ACCESS_TOKEN}" --plugin noop --slug CEED/libCEED -B "${GIT_BRANCH}" -C "${CI_COMMIT_SHA}" -n "${CODECOV_NAME}"
fi
artifacts:
paths:
- build/*.junit
Expand Down Expand Up @@ -452,19 +435,15 @@ noether-cuda:
# # Clang-tidy
# - echo "-------------- clang-tidy ----------" && clang-tidy --version
# - TIDY_OPTS="-fix-errors -warnings-as-errors=" make -j$NPROC_CPU tidy
# # Coverage
# - lcov --directory . --capture --gcov-tool $GCOV --output-file coverage.info --no-external --exclude '/usr/include/*' --rc geninfo_unexecuted_blocks=1 --verbose --demangle-cpp --substitute 's#(^|/)(?!tests/)([^/]+)/(t[^/]+-f\.[^/]+)$#$1$2/tests/$3#g' --substitute 's#([^/]+)/(?<!examples/ceed/)(ex[^/]+-f\.[^/]+)$#$1/examples/ceed/$2#g' --ignore-errors inconsistent --ignore-errors unused,unused
# - # Load the virtual environment with codecovcli
# - source /projects/.venv_libceed_ci/bin/activate
# - export GIT_BRANCH=$CI_COMMIT_REF_NAME
# - export CODECOV_NAME=$CI_JOB_NAME
# - codecov-cli --verbose upload-coverage -f coverage.info --git-service github -t "${CODECOV_ACCESS_TOKEN}" --plugin noop --slug CEED/libCEED -B "${GIT_BRANCH}" -C "${CI_COMMIT_SHA}" -n "${CODECOV_NAME}"
# # Report status
# - touch .SUCCESS
# after_script:
# - |
# if [ -f .SUCCESS ]; then
# source job.env;
# lcov --directory . --capture --gcov-tool $GCOV --output-file coverage.info --no-external --exclude '/usr/include/*' --rc geninfo_unexecuted_blocks=1 --verbose --demangle-cpp --substitute 's#(^|/)(?!tests/)([^/]+)/(t[^/]+-f\.[^/]+)$#$1$2/tests/$3#g' --substitute 's#([^/]+)/(?<!examples/ceed/)(ex[^/]+-f\.[^/]+)$#$1/examples/ceed/$2#g' --ignore-errors inconsistent --ignore-errors unused,unused
# # Load the virtual environment with codecovcli
# source /projects/.venv_libceed_ci/bin/activate
# export GIT_BRANCH=$CI_COMMIT_REF_NAME
# export CODECOV_NAME=$CI_JOB_NAME
# codecov-cli --verbose upload-coverage -f coverage.info --git-service github -t "${CODECOV_ACCESS_TOKEN}" --plugin noop --slug CEED/libCEED -B "${GIT_BRANCH}" -C "${CI_COMMIT_SHA}" -n "${CODECOV_NAME}"
# fi
# artifacts:
# paths:
# - build/*.junit
Expand Down Expand Up @@ -522,7 +501,7 @@ noether-float:
interruptible: true
before_script:
# Environment
- export COVERAGE=1 CC=gcc-14 CXX=g++-14 FC= NVCC=nvcc GCOV=gcov-14
- export COVERAGE=1 CC=gcc-16 CXX=g++-16 FC= NVCC=nvcc GCOV=gcov-16
- export CEED_JIT_ERROR_ON_FAILURE=1 CEED_CACHE_BASE_DIR=$PWD/temp
- export NPROC_POOL=8 NPROC_CPU=$(nproc) NPROC_GPU=$(($(nproc)<8?$(nproc):8))
- echo "-------------- nproc ---------------" && echo "NPROC_CPU" $NPROC_CPU && echo "NPROC_GPU" $NPROC_GPU
Expand Down Expand Up @@ -551,27 +530,31 @@ noether-float:
- echo "-------------- BACKENDS_GPU --------" && echo $BACKENDS_GPU
- make clean
- make -j$NPROC_CPU
- source /projects/.venv_libceed_ci/bin/activate
- export GIT_BRANCH=$CI_COMMIT_REF_NAME
# Load the virtual environment with codecovcli
# -- libCEED only tests
- echo "-------------- core tests ----------"
- echo '[{"subject":"/","metrics":[{"name":"Transfer Size (KB)","value":"19.5","desiredSize":"smaller"},{"name":"Speed Index","value":0,"desiredSize":"smaller"},{"name":"Total Score","value":92,"desiredSize":"larger"},{"name":"Requests","value":4,"desiredSize":"smaller"}]}]' > performance.json
# Note: PETSC_DIR is set by default in GitLab runner env, unsetting to isolate core tests
- export PETSC_DIR= PETSC_ARCH=
- make -k -j$((NPROC_CPU / NPROC_POOL)) BACKENDS="$BACKENDS_CPU" JUNIT_BATCH="float-cpu" junit realsearch=%
- lcov --directory . --capture --gcov-tool $GCOV --output-file coverage-float-cpu.info --no-external --exclude '/usr/include/*' --rc geninfo_unexecuted_blocks=1 --verbose --demangle-cpp --substitute 's#(^|/)(?!tests/)([^/]+)/(t[^/]+-f\.[^/]+)$#$1$2/tests/$3#g' --substitute 's#([^/]+)/(?<!examples/ceed/)(ex[^/]+-f\.[^/]+)$#$1/examples/ceed/$2#g' --ignore-errors inconsistent --ignore-errors unused,unused
- export CODECOV_NAME=$CI_JOB_NAME-cpu
- codecov-cli --verbose upload-coverage -f coverage-float-cpu.info --git-service github -t "${CODECOV_ACCESS_TOKEN}" --plugin noop --slug CEED/libCEED -B "${GIT_BRANCH}" -C "${CI_COMMIT_SHA}" -n "${CODECOV_NAME}"
- rm coverage-float-cpu.info
# GPU float
- make clean
- make -j$NPROC_CPU
- export NPROC_POOL=4
- make -k -j$((NPROC_GPU / NPROC_POOL)) BACKENDS="$BACKENDS_GPU" JUNIT_BATCH="float-cuda" junit realsearch=%
# Coverage
- lcov --directory . --capture --gcov-tool $GCOV --output-file coverage-float-gpu.info --no-external --exclude '/usr/include/*' --rc geninfo_unexecuted_blocks=1 --verbose --demangle-cpp --substitute 's#(^|/)(?!tests/)([^/]+)/(t[^/]+-f\.[^/]+)$#$1$2/tests/$3#g' --substitute 's#([^/]+)/(?<!examples/ceed/)(ex[^/]+-f\.[^/]+)$#$1/examples/ceed/$2#g' --ignore-errors inconsistent --ignore-errors unused,unused
- export CODECOV_NAME=$CI_JOB_NAME-gpu
- codecov-cli --verbose upload-coverage -f coverage-float-gpu.info --git-service github -t "${CODECOV_ACCESS_TOKEN}" --plugin noop --slug CEED/libCEED -B "${GIT_BRANCH}" -C "${CI_COMMIT_SHA}" -n "${CODECOV_NAME}"
# Report status
- echo "SUCCESS" > .job_status
after_script:
- |
if [ $(cat .job_status) == "SUCCESS" ]; then
source job.env;
lcov --directory . --capture --gcov-tool $GCOV --output-file coverage.info --no-external --exclude '/usr/include/*' --rc geninfo_unexecuted_blocks=1 --verbose --demangle-cpp --substitute 's#(^|/)(?!tests/)([^/]+)/(t[^/]+-f\.[^/]+)$#$1$2/tests/$3#g' --substitute 's#([^/]+)/(?<!examples/ceed/)(ex[^/]+-f\.[^/]+)$#$1/examples/ceed/$2#g' --ignore-errors inconsistent --ignore-errors unused,unused
# Load the virtual environment with codecovcli
source /projects/.venv_libceed_ci/bin/activate
export GIT_BRANCH=$CI_COMMIT_REF_NAME
export CODECOV_NAME=$CI_JOB_NAME
codecov-cli --verbose upload-coverage -f coverage.info --git-service github -t "${CODECOV_ACCESS_TOKEN}" --plugin noop --slug CEED/libCEED -B "${GIT_BRANCH}" -C "${CI_COMMIT_SHA}" -n "${CODECOV_NAME}"
fi
- sed -i 's/ceed-f32/ceed-f64/1' include/ceed/types.h
artifacts:
paths:
Expand Down