| 1 |
# Copyright (c) 2010-2025, Lawrence Livermore National Security, LLC. Produced |
| 2 |
# at the Lawrence Livermore National Laboratory. All Rights reserved. See files |
| 3 |
# LICENSE and NOTICE for details. LLNL-CODE-806117. |
| 4 |
# |
| 5 |
# This file is part of the MFEM library. For more information and source code |
| 6 |
# availability visit https://mfem.org. |
| 7 |
# |
| 8 |
# MFEM is free software; you can redistribute it and/or modify it under the |
| 9 |
# terms of the BSD-3 license. We welcome feedback and contributions, see file |
| 10 |
# CONTRIBUTING.md for details. |
| 11 |
|
| 12 |
# Override reproducer section to define UMPIRE specific variables. |
| 13 |
.matrix_reproducer_vars: |
| 14 |
script: |
| 15 |
- !reference [.reproducer_vars, script] |
| 16 |
|
| 17 |
#TODO: Setup script should be defined as a bash script (but then GIT_STRATEGY cannot be "none" anymore). |
| 18 |
|
| 19 |
# Setup clones the mfem/data repo in ${SHARED_REPOS_DIR}. The build_and_test |
| 20 |
# script then symlinks the repo to the parent directory of the MFEM source |
| 21 |
# directory. Unit tests that depend on the mfem/data repo will then detect that |
| 22 |
# this directory is present and be enabled. |
| 23 |
setup: |
| 24 |
extends: .on_matrix |
| 25 |
stage: jobs-stage-1 |
| 26 |
script: |
| 27 |
- ./tests/gitlab/build_and_test_setup |
| 28 |
|
| 29 |
|
| 30 |
######################## |
| 31 |
# Overridden shared jobs |
| 32 |
######################## |
| 33 |
# When using shared jobs , we can duplicate them here to override description and add necessary changes. |
| 34 |
# We keep ${PROJECT_<MACHINE>_VARIANTS} and ${PROJECT_<MACHINE>_DEPS} So that |
| 35 |
# the comparison with the original job is easier. |
| 36 |
|
| 37 |
|
| 38 |
############ |
| 39 |
# Extra jobs |
| 40 |
############ |
| 41 |
# We do not recommend using ${PROJECT_<MACHINE>_VARIANTS} and |
| 42 |
# ${PROJECT_<MACHINE>_DEPS} in the extra jobs. There is not reason not to fully |
| 43 |
# describe the spec here. |
| 44 |
|
| 45 |
.mfem_job_on_matrix: |
| 46 |
extends: .job_on_matrix |
| 47 |
stage: jobs-stage-2 |
| 48 |
variables: |
| 49 |
# We run 2 jobs on 1 node that has 112 threads |
| 50 |
THREADS: 48 |
| 51 |
# These modules need to be consistent with the uberenv configurations: |
| 52 |
MODULE_LIST: "gcc/10.3.1-magic cuda/12.9.1" |
| 53 |
|
| 54 |
allocate_resources: |
| 55 |
timeout: 4h |
| 56 |
|
| 57 |
opt_mpi_cuda_gcc: |
| 58 |
extends: .mfem_job_on_matrix |
| 59 |
variables: |
| 60 |
SPEC: "%[email protected] +mpi +cuda cuda_arch=90" |
| 61 |
|
| 62 |
opt_mpi_cuda_hypre_cuda_gcc: |
| 63 |
extends: .mfem_job_on_matrix |
| 64 |
variables: |
| 65 |
SPEC: "%[email protected] +mpi +cuda cuda_arch=90 ^hypre+cuda" |