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

use streak.llnl.gov as runner for GHA #2873

Merged
merged 74 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from 71 commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
50a62e4
attempt to transfer modifications from old branch feature/useStreakFo…
rrsettgast Dec 7, 2023
b491777
Merge branch 'develop' into feature/useStreakForRunner2
rrsettgast Dec 7, 2023
e3593b1
test
rrsettgast Dec 7, 2023
3428f15
test
rrsettgast Dec 7, 2023
e6994d1
test
rrsettgast Dec 7, 2023
a485937
test
rrsettgast Dec 7, 2023
318d833
test
rrsettgast Dec 7, 2023
6cf1dbf
test
rrsettgast Dec 7, 2023
9574bbd
test
rrsettgast Dec 7, 2023
3b9d75a
test
rrsettgast Dec 7, 2023
8c8ac20
test
rrsettgast Dec 7, 2023
abde69d
test
rrsettgast Dec 7, 2023
513e7b8
test
rrsettgast Dec 7, 2023
1ddcb6a
test
rrsettgast Dec 8, 2023
c24a25d
test
rrsettgast Dec 8, 2023
0fd6b8b
test
rrsettgast Dec 8, 2023
9d89343
test
rrsettgast Dec 8, 2023
95d6455
test
rrsettgast Dec 8, 2023
1dfd2ee
test
rrsettgast Dec 8, 2023
7f759b4
test
rrsettgast Dec 8, 2023
521ee05
test
rrsettgast Dec 8, 2023
57bad0e
test
rrsettgast Dec 8, 2023
dc94a52
mostly works for ubuntu. fails on python gsutil push
rrsettgast Dec 8, 2023
498f96c
try to use pip_system_certs
rrsettgast Dec 9, 2023
eea10cf
try to use pip_system_certs...this time in right context
rrsettgast Dec 9, 2023
cdad4be
output some information for debugging the issues with gcp
rrsettgast Dec 9, 2023
1a52d35
run args for docker image
rrsettgast Dec 9, 2023
ad1e54b
Merge branch 'develop' into feature/useStreakForRunner2
rrsettgast Dec 9, 2023
7fa0746
Merge branch 'develop' into feature/useStreakForRunner2
rrsettgast Dec 16, 2023
ff2d5b9
more tests on streak
rrsettgast Dec 16, 2023
67feb37
try ubuntu cuda build for consistency with cpu certificate setup
rrsettgast Dec 16, 2023
0f45fc6
change runner sizes
rrsettgast Dec 16, 2023
0562f01
change number of procs for integrated tests to
rrsettgast Dec 16, 2023
fafacb5
attempt to clean runner workspace
rrsettgast Dec 16, 2023
50c1cf7
attempt to clean workspace from inside the docker container
rrsettgast Dec 16, 2023
38eb766
manually reduce size of integratedTest cores
rrsettgast Dec 16, 2023
017d253
reduce the number of cores used
rrsettgast Dec 18, 2023
1230aa5
run cuda build again...save container
rrsettgast Dec 19, 2023
7f129e9
run cuda build again...save container
rrsettgast Dec 19, 2023
ecac931
run cuda build again...save container
rrsettgast Dec 19, 2023
d935e2f
add nvidia runtime to docker args
rrsettgast Dec 20, 2023
51b2679
Merge branch 'develop' into feature/useStreakForRunner2
rrsettgast Jan 25, 2024
91836a8
add runner group and label granularity
rrsettgast Jan 25, 2024
6171fee
add runner group and label granularity
rrsettgast Jan 25, 2024
041501b
remove runner group
rrsettgast Jan 25, 2024
b6e142d
try runner list
rrsettgast Jan 26, 2024
c5390d7
try string again
rrsettgast Jan 26, 2024
e9be587
update checkout
rrsettgast Jan 26, 2024
8074e8f
add second runner
rrsettgast Jan 26, 2024
d4f01ec
Merge branch 'develop' into feature/useStreakForRunner2
rrsettgast Jan 26, 2024
5b0557c
guard certificate updates in container. re-enable other builds
rrsettgast Jan 26, 2024
2258d31
error in script
rrsettgast Jan 26, 2024
40630de
error in script
rrsettgast Jan 26, 2024
838157d
error in script
rrsettgast Jan 26, 2024
649e4c7
error in script
rrsettgast Jan 26, 2024
bd7717e
revert guards
rrsettgast Jan 26, 2024
ca66c4a
re-enable guard in build_and_test.yml
rrsettgast Jan 26, 2024
85aa635
re-enable guard in script
rrsettgast Jan 26, 2024
8738cd7
try to set NPROC for streak case
rrsettgast Jan 26, 2024
0b5fefe
try to set NPROC for streak case
rrsettgast Jan 26, 2024
336519b
try to set NPROC for streak case
rrsettgast Jan 26, 2024
a0d23df
update google-cloud actions
rrsettgast Jan 26, 2024
9751403
Merge branch 'develop' into feature/useStreakForRunner2
rrsettgast Jan 31, 2024
54b474d
fix bug involing a reference data member in SoidBaseUpdates
rrsettgast Feb 5, 2024
f627583
Merge branch 'develop' into feature/useStreakForRunner2
rrsettgast Feb 5, 2024
bd0505b
disable SolverTestLaplace2D/GMRES_ILU test
rrsettgast Feb 6, 2024
0fb6af5
exclude failing unit tests on streak cuda
rrsettgast Feb 6, 2024
2996020
update LvArray submodule
rrsettgast Feb 6, 2024
346ea5a
update submodules
rrsettgast Feb 6, 2024
52c72ee
Merge branch 'develop' into feature/useStreakForRunner2
CusiniM Feb 6, 2024
2dc1ce7
Merge branch 'develop' into feature/useStreakForRunner2
rrsettgast Feb 7, 2024
a25def1
re-enable specificaiton of container name
rrsettgast Feb 7, 2024
80c2441
revert integrated tests to 2 core
rrsettgast Feb 7, 2024
931b4e2
run integrated tests for non-pull request
rrsettgast Feb 7, 2024
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
39 changes: 34 additions & 5 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:
DOCKER_REPOSITORY:
required: true
type: string
DOCKER_RUN_ARGS:
required: false
type: string
ENABLE_HYPRE:
required: false
type: string
Expand Down Expand Up @@ -52,22 +55,22 @@ jobs:
runs-on: ${{ inputs.RUNS_ON }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
with:
submodules: true
lfs: ${{ inputs.BUILD_TYPE == 'integrated_tests' }}
fetch-depth: 1

- id: 'auth'
if: ${{ inputs.GCP_BUCKET || inputs.USE_SCCACHE }}
uses: 'google-github-actions/auth@v1'
uses: 'google-github-actions/auth@v2.1.0'
with:
credentials_json: '${{ secrets.GOOGLE_CLOUD_GCP }}'
create_credentials_file: true

- name: 'Set up Cloud SDK'
if: inputs.GCP_BUCKET
uses: 'google-github-actions/setup-gcloud@v1'
uses: 'google-github-actions/setup-gcloud@v2.1.0'
with:
version: '>= 363.0.0'

Expand All @@ -81,6 +84,10 @@ jobs:
docker_args=()
script_args=()



docker_args+=(${{ inputs.DOCKER_RUN_ARGS }})

COMMIT=${{ github.event.pull_request.head.sha }}
SHORT_COMMIT=${COMMIT:0:7}
script_args+=(--install-dir-basename GEOSX-${SHORT_COMMIT})
Expand All @@ -97,7 +104,9 @@ jobs:
script_args+=(--data-basename ${DATA_BASENAME})

DATA_EXCHANGE_DIR=/mnt/geos-exchange # Exchange folder outside of the container
sudo mkdir -p ${DATA_EXCHANGE_DIR}
if [ ! -d "${DATA_EXCHANGE_DIR}" ]; then
sudo mkdir -p ${DATA_EXCHANGE_DIR}
fi
DATA_EXCHANGE_MOUNT_POINT=/tmp/exchange # Exchange folder inside of the container
docker_args+=(--volume=${DATA_EXCHANGE_DIR}:${DATA_EXCHANGE_MOUNT_POINT})
script_args+=(--exchange-dir ${DATA_EXCHANGE_MOUNT_POINT})
Expand All @@ -110,6 +119,11 @@ jobs:
script_args+=(--sccache-credentials $(basename ${GOOGLE_GHA_CREDS_PATH}))
fi

if [ ${{ inputs.RUNS_ON }} == 'self-hosted' ]; then
RUNNER_CERTIFICATES_DIR=/etc/pki/ca-trust/source/anchors/
mkdir -p ${GITHUB_WORKSPACE}/certificates
cp ${RUNNER_CERTIFICATES_DIR}/*.crt* ${GITHUB_WORKSPACE}/certificates
fi
Comment on lines +122 to +126
Copy link
Contributor

@TotoGaz TotoGaz Feb 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use the DOCKER_RUN_ARGS input to add -v /etc/pki/ca-trust/source/anchors/.../bundle.crt:/etc/pki/ca-trust/.../llnl.bundle.crt:ro.

That way the certificate would be at the proper location in read-only, with no copy required from within the container.

Then inside of the docker container simply update the certificates list (we can do it whatever the case : it's fast and could do not harm?). Or if we really want it, we can add an option.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We certainly can...and probably should. Would you mind if we did this in a follow up PR. We are getting another workstation to run integratedTests on the CPU, and we will require a generic treatment at that time. I would rather just get this merged as is, and in separate PR's:

  1. clean up and generalize for the new workstation,
  2. fix the failing unit tests on GPU, and
  3. get integrated tests diffs worked out.

we can do all of these steps independent of each other IMO.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I'm good with it. We need to be sure we actually have time to revisit this.

# We need to know where the code folder is mounted inside the container so we can run the script at the proper location!
# Since this information is repeated twice, we use a variable.
GITHUB_WORKSPACE_MOUNT_POINT=/tmp/geos
Expand All @@ -126,11 +140,19 @@ jobs:
docker_args+=(-e ENABLE_HYPRE_DEVICE=${ENABLE_HYPRE_DEVICE:-CPU})
docker_args+=(-e ENABLE_TRILINOS=${ENABLE_TRILINOS:-ON})

docker_args+=(--cap-add=SYS_PTRACE)
docker_args+=(--cap-add=SYS_PTRACE --rm)

script_args+=(--cmake-build-type ${{ inputs.CMAKE_BUILD_TYPE }})
script_args+=(${{ inputs.BUILD_AND_TEST_CLI_ARGS }})

# SPLIT_DOCKER_REPOSITORY=(${DOCKER_REPOSITORY//// })
# CONTAINER_NAME=geosx_build_${SPLIT_DOCKER_REPOSITORY[1]}_${GITHUB_SHA:0:7}
# if [ "$(docker ps -aq -f name=${CONTAINER_NAME})" ]; then
# docker rm -f ${CONTAINER_NAME}
# fi
# docker_args+=(--name ${CONTAINER_NAME})
rrsettgast marked this conversation as resolved.
Show resolved Hide resolved


if ${{ inputs.CODE_COVERAGE }} == 'true'; then
script_args+=(--code-coverage)
fi
Expand All @@ -142,6 +164,7 @@ jobs:
set +e
docker run \
${docker_args[@]} \
-h=`hostname` \
${{ inputs.DOCKER_REPOSITORY }}:${{ inputs.DOCKER_IMAGE_TAG }} \
${GITHUB_WORKSPACE_MOUNT_POINT}/scripts/ci_build_and_test_in_container.sh \
${script_args[@]}
Expand All @@ -156,6 +179,12 @@ jobs:
echo "Download the bundle at https://storage.googleapis.com/${{ inputs.GCP_BUCKET }}/${DATA_BASENAME}"
fi
fi

# Remove the container and the workspace to avoid any conflict with the next run.
echo github.workspace = ${{ github.workspace }}
#rm -rf ${{ github.workspace }}/*
#docker rm -f ${CONTAINER_NAME}
Comment on lines +187 to +188
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So do you still need to clean up?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then can you add a small comment about it?


exit ${EXIT_STATUS}

- name: Upload coverage to Codecov
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:

# The TPL tag is contained in the codespaces configuration to avoid duplications.
- name: Checkout .devcontainer/devcontainer.json
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
with:
sparse-checkout: |
.devcontainer/devcontainer.json
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
# The integrated test submodule repository contains large data (using git lfs).
# To save time (and money) we do not let Github Actions automatically clone all our (lfs) subrepositories and do it by hand.
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
with:
# Let script update submodules; Github Actions submodule history causes error
submodules: false
Expand Down Expand Up @@ -201,6 +201,8 @@ jobs:
ENABLE_TRILINOS: OFF
GCP_BUCKET: geosx/integratedTests
RUNS_ON: ubuntu-22.04
# RUNS_ON: self-hosted
# DOCKER_RUN_ARGS: "--cpus=8 --memory=128g"
rrsettgast marked this conversation as resolved.
Show resolved Hide resolved

code_coverage:
needs:
Expand Down Expand Up @@ -240,13 +242,15 @@ jobs:
RUNS_ON: Runner_8core_32GB

- name: Ubuntu CUDA (20.04, clang 10.0.0 + gcc 9.4.0, open-mpi 4.0.3, cuda-11.8.89)
BUILD_AND_TEST_CLI_ARGS: "--no-run-unit-tests --no-install-schema"
BUILD_AND_TEST_CLI_ARGS: "--no-install-schema"
CMAKE_BUILD_TYPE: Release
DOCKER_REPOSITORY: geosx/ubuntu20.04-clang10.0.0-cuda11.8.89
ENABLE_HYPRE_DEVICE: CUDA
ENABLE_HYPRE: ON
ENABLE_TRILINOS: OFF
RUNS_ON: Runner_4core_16GB
RUNS_ON: self-hosted
DOCKER_RUN_ARGS: "--cpus=8 --memory=128g --runtime=nvidia --gpus all"


- name: Centos (7.7, gcc 8.3.1, open-mpi 1.10.7, cuda 11.8.89)
BUILD_AND_TEST_CLI_ARGS: "--no-run-unit-tests --no-install-schema"
Expand All @@ -267,6 +271,7 @@ jobs:
CMAKE_BUILD_TYPE: ${{ matrix.CMAKE_BUILD_TYPE }}
DOCKER_IMAGE_TAG: ${{ needs.is_not_draft_pull_request.outputs.DOCKER_IMAGE_TAG }}
DOCKER_REPOSITORY: ${{ matrix.DOCKER_REPOSITORY }}
DOCKER_RUN_ARGS: ${{ matrix.DOCKER_RUN_ARGS }}
ENABLE_HYPRE_DEVICE: ${{ matrix.ENABLE_HYPRE_DEVICE }}
ENABLE_HYPRE: ${{ matrix.ENABLE_HYPRE }}
ENABLE_TRILINOS: ${{ matrix.ENABLE_TRILINOS }}
Expand Down
114 changes: 0 additions & 114 deletions scripts/buildOrTest.py

This file was deleted.

38 changes: 34 additions & 4 deletions scripts/ci_build_and_test_in_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,26 @@ EOT
# The path to the `sccache` executable is available through the SCCACHE environment variable.
SCCACHE_CMAKE_ARGS="-DCMAKE_CXX_COMPILER_LAUNCHER=${SCCACHE} -DCMAKE_CUDA_COMPILER_LAUNCHER=${SCCACHE}"

if [[ ${HOSTNAME} == 'streak.llnl.gov' ]]; then
DOCKER_CERTS_DIR=/usr/local/share/ca-certificates
for file in "${GEOS_SRC_DIR}"/certificates/*.crt.pem; do
if [ -f "$file" ]; then
filename=$(basename -- "$file")
filename_no_ext="${filename%.*}"
new_filename="${DOCKER_CERTS_DIR}/${filename_no_ext}.crt"
cp "$file" "$new_filename"
echo "Copied $filename to $new_filename"
fi
done
update-ca-certificates
# gcloud config set core/custom_ca_certs_file cert.pem'

NPROC=8
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is hard coded right now for streak.

else
NPROC=$(nproc)
fi
echo "Using ${NPROC} cores."

echo "sccache initial state"
${SCCACHE} --show-stats
fi
Expand All @@ -154,7 +174,7 @@ if [[ "${RUN_INTEGRATED_TESTS}" = true ]]; then
or_die apt-get install -y virtualenv python3-dev python-is-python3
ATS_PYTHON_HOME=/tmp/run_integrated_tests_virtualenv
or_die virtualenv ${ATS_PYTHON_HOME}
ATS_CMAKE_ARGS="-DATS_ARGUMENTS=\"--machine openmpi --ats openmpi_mpirun=/usr/bin/mpirun --ats openmpi_args=--allow-run-as-root --ats openmpi_procspernode=2 --ats openmpi_maxprocs=2\" -DPython3_ROOT_DIR=${ATS_PYTHON_HOME}"
ATS_CMAKE_ARGS="-DATS_ARGUMENTS=\"--machine openmpi --ats openmpi_mpirun=/usr/bin/mpirun --ats openmpi_args=--allow-run-as-root --ats openmpi_procspernode=${NPROC} --ats openmpi_maxprocs=${NPROC}\" -DPython3_ROOT_DIR=${ATS_PYTHON_HOME}"
fi


Expand Down Expand Up @@ -208,9 +228,9 @@ fi

# Performing the requested build.
if [[ "${BUILD_EXE_ONLY}" = true ]]; then
or_die ninja -j $(nproc) geosx
or_die ninja -j $NPROC geosx
else
or_die ninja -j $(nproc)
or_die ninja -j $NPROC
or_die ninja install

if [[ ! -z "${DATA_BASENAME_WE}" ]]; then
Expand All @@ -232,7 +252,11 @@ fi

# Run the unit tests (excluding previously ran checks).
if [[ "${RUN_UNIT_TESTS}" = true ]]; then
or_die ctest --output-on-failure -E "testUncrustifyCheck|testDoxygenCheck"
if [[ ${HOSTNAME} == 'streak.llnl.gov' ]]; then
or_die ctest --output-on-failure -E "testUncrustifyCheck|testDoxygenCheck|testLifoStorage|testExternalSolvers"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to exclude the two failing unit tests on GPU systems so we can merge this and follow up with fix PR's.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you create an issue pointing at this line though? If someone other than you fixes the tests I am pretty sure they'll forget to remove this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd add a EXCLUDE_UNIT_TESTS_RE input in GHA, defaulting to testUncrustifyCheck|testDoxygenCheck, so we do not have to hardcode anything.
Combined to giving the number of CPUs as a CLI arguments as well (NPROC can be provided through GHA, or defaulted to the results of nproc is absent), then we'll remove the need to hard code the name of the self hosted runner.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would, but I actually don't think we should be excluding unit tests once they are fixed. This is just a hack to get us to the next step (passing tests), after witch this goes away. I actually do want to make it as hard as possible to exclude specific tests 😁

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense. I kind of prefer having an easy way to do thing with a Cerberus at the code review, but it's OK.
What happens, is that the people maintaining the CI are not the same maintaining the tests or code. So the CI guys gets some ugly code he's not responsible for.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well....that is a good enough reason.

else
or_die ctest --output-on-failure -E "testUncrustifyCheck|testDoxygenCheck"
fi
fi

if [[ "${RUN_INTEGRATED_TESTS}" = true ]]; then
Expand All @@ -256,8 +280,14 @@ if [[ "${RUN_INTEGRATED_TESTS}" = true ]]; then
or_die tar cfM ${DATA_EXCHANGE_DIR}/${DATA_BASENAME_WE}.tar --directory ${GEOS_SRC_DIR} --transform "s/^integratedTests/${DATA_BASENAME_WE}\/repo/" integratedTests
or_die tar rfM ${DATA_EXCHANGE_DIR}/${DATA_BASENAME_WE}.tar --directory ${GEOSX_BUILD_DIR} --transform "s/^integratedTests/${DATA_BASENAME_WE}\/logs/" integratedTests
or_die gzip ${DATA_EXCHANGE_DIR}/${DATA_BASENAME_WE}.tar

# want to clean the integrated tests folder to avoid polluting the next build.
or_die integratedTests/geos_ats.sh -a clean
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With @cssherman 's patch to build the baselines out of source, cleaning the integrated tests will surely not be mandatory anymore, since they disappear with the docker run --rm.
Also, we will be able to mount the source read-only!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this was before the --rm command. I can try without.

Copy link
Contributor

@TotoGaz TotoGaz Feb 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I think @cssherman 's PR has not been merged already. Am I wrong?

Copy link
Collaborator

@CusiniM CusiniM Feb 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clean not veryclean ? I think it will still be better to clean up the integratedTests directory. One may update the version of the baselines... and the clean also removes the tests results which I think we do want to remove IMO. Unless the rm options cleans all that for us.

Copy link
Contributor

@TotoGaz TotoGaz Feb 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An option can be to mount the workspace read-only in the container, then copy it to a temporary and work in it (waiting for an out-of-source integrated tests which should solve the last item which touches the src dir).
Then everything would be cleaned by the docker run --rm.

Eventually, we'll be able to skip the workspace copy, but not right now.

fi

# Cleaning the build directory.
or_die ninja clean
Comment on lines +288 to +289
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is most likely superfluous since the build dir is in /tmp which is washed away with the --rm option of docker run. You can keep it if you want, since this may change.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you are right.


# If we're here, either everything went OK or we have to deal with the integrated tests manually.
if [[ ! -z "${INTEGRATED_TEST_EXIT_STATUS+x}" ]]; then
echo "Exiting the build process with exit status ${INTEGRATED_TEST_EXIT_STATUS} from the integrated tests."
Expand Down
2 changes: 1 addition & 1 deletion src/coreComponents/constitutive/solid/SolidBase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class SolidBaseUpdates
arrayView1d< real64 const > const m_thermalExpansionCoefficient;

/// Flag to disable inelasticity
const bool & m_disableInelasticity;
const bool m_disableInelasticity;
Copy link
Member Author

@rrsettgast rrsettgast Feb 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a bug on heterogeneous memory systems. @klevzoff This was the problem with the constitutive unit tests from the remove array1d<string>

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there any way to automatically check for this kind of bugs? Any way to at least get a warning whenever a reference is captured by value in a raja forAll?


/**
* @brief Get bulkModulus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ void compute2DLaplaceOperator( MPI_Comm comm,

// Construct the 2D Laplace matrix
laplace2D.create( matrix.toViewConst(), matrix.numRows(), comm );

// laplace2D.write( "matrix.txt", LAIOutputFormat::NATIVE_ASCII);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep this because it will be needed when we fix this test on GPU.

}

/**
Expand Down
Loading