-
Notifications
You must be signed in to change notification settings - Fork 27
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 #1425 from LLNL/task/rhornung67/v0.10.0-RC
Merge v0.10.0-RC to main
- Loading branch information
Showing
350 changed files
with
20,442 additions
and
8,629 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM ghcr.io/llnl/radiuss:clang-14-ubuntu-22.04 | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
USER root | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |
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,68 @@ | ||
#!/bin/bash | ||
|
||
# This is a bare minimum of options needed to create the `style` build target. | ||
CMAKE_ARGS=-DCMAKE_CXX_COMPILER=clang++ | ||
CMAKE_ARGS="$CMAKE_ARGS -DENABLE_CLANGFORMAT=ON" | ||
CMAKE_ARGS="$CMAKE_ARGS -DCLANGFORMAT_EXECUTABLE=/usr/bin/clang-format" | ||
CMAKE_ARGS="$CMAKE_ARGS -DAXOM_ENABLE_ALL_COMPONENTS=OFF" | ||
|
||
# Avoid error "fatal: detected dubious ownership in repository at '/github/workspace'" | ||
REPO_PATH=/github/workspace | ||
git config --global --add safe.directory "$REPO_PATH" | ||
find "$REPO_PATH" -type d | while read -r dir; do | ||
git config --global --add safe.directory "$dir" | ||
done | ||
|
||
git fetch | ||
|
||
### | ||
# Attempt to find the branch of the PR from the detached head state | ||
## | ||
|
||
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" | ||
echo "Attempting to find branch that matches commit..." | ||
|
||
# Get the current commit SHA | ||
current_commit_sha=$(git rev-parse HEAD) | ||
# List all branches containing the current commit SHA | ||
branches=$(git branch -r --contains $current_commit_sha) | ||
|
||
# Loop over the string split by whitespace | ||
branch="" | ||
num_branches_found=0 | ||
for _possible_branch in $branches; do | ||
# Skip items that start with "pull/" | ||
if [[ $_possible_branch == pull/* ]]; then | ||
continue | ||
fi | ||
if [[ $_possible_branch == origin/* ]]; then | ||
_possible_branch=$(echo "$_possible_branch" | sed 's/origin\///') | ||
fi | ||
echo "Possible Branch: $_possible_branch" | ||
branch=$_possible_branch | ||
num_branches_found=$((num_branches_found+1)) | ||
done | ||
|
||
if [ "$num_branches_found" -ne 1 ]; then | ||
echo "Error: Unable to find a single branch that matched git sha $current_commit_sha" | ||
exit 1 | ||
fi | ||
|
||
echo "Found branch: $branch" | ||
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" | ||
|
||
git checkout $branch | ||
|
||
git submodule update --init --recursive | ||
|
||
mkdir build && cd build | ||
cmake $CMAKE_ARGS ../src | ||
make style | ||
cd .. | ||
|
||
git config user.name "format-robot" | ||
git config user.email "[email protected]" | ||
if [ -n "$(git status --porcelain)" ]; then | ||
git commit -am 'Apply style updates' | ||
git push | ||
fi |
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,28 @@ | ||
name: Apply Style | ||
|
||
on: | ||
issue_comment: | ||
types: [created] | ||
|
||
jobs: | ||
apply-style: | ||
if: startsWith(github.event.comment.body, '/style') | ||
name: Apply Style to Source | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Checkout the GitHub created reference for the PR. | ||
# The only way to do this is by using the "issue" number | ||
# but that is really the PR number in this context. | ||
# This is due to using an `issue_comment` event which | ||
# is due to the GitHub Actions API that does not have | ||
# a `pull_request_comment` event or something similar. | ||
# This leaves us in a detached head state which is corrected | ||
# in `apply-style/entrypoint.sh` | ||
- name: Checkout pull request | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: refs/pull/${{ github.event.issue.number }}/head | ||
|
||
- name: Apply style updates | ||
uses: ./.github/actions/apply-style |
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 |
---|---|---|
|
@@ -6,8 +6,10 @@ | |
#### | ||
# This is the share configuration of jobs for lassen | ||
.on_lassen: | ||
variables: | ||
SCHEDULER_PARAMETERS: "-nnodes 1 -W ${ALLOC_TIME} -q pci -alloc_flags atsdisable" | ||
tags: | ||
- shell | ||
- batch | ||
- lassen | ||
rules: | ||
- if: '$CI_COMMIT_BRANCH =~ /_lnone/ || $ON_LASSEN == "OFF"' #run except if ... | ||
|
@@ -20,16 +22,14 @@ | |
#### | ||
# Template | ||
.src_build_on_lassen: | ||
stage: build | ||
variables: | ||
ALLOC_COMMAND: "lalloc 1 -W 25 -q pci -alloc_flags atsdisable" | ||
ALLOC_TIME: "25" | ||
extends: [.src_build_script, .on_lassen, .src_workflow] | ||
needs: [] | ||
|
||
.full_build_on_lassen: | ||
stage: build | ||
variables: | ||
ALLOC_COMMAND: "lalloc 1 -W 45 -q pci -alloc_flags atsdisable" | ||
ALLOC_TIME: "45" | ||
extends: [.full_build_script, .on_lassen, .full_workflow] | ||
needs: [] | ||
|
||
|
@@ -59,18 +59,6 @@ lassen-gcc_8_3_1_cuda-src: | |
HOST_CONFIG: "lassen-blueos_3_ppc64le_ib_p9-${COMPILER}.cmake" | ||
extends: [.src_build_on_lassen] | ||
|
||
lassen-xl_16_1_1-src: | ||
variables: | ||
COMPILER: "[email protected]" | ||
HOST_CONFIG: "lassen-blueos_3_ppc64le_ib_p9-${COMPILER}.cmake" | ||
extends: [.src_build_on_lassen] | ||
|
||
lassen-xl_16_1_1_cuda-src: | ||
variables: | ||
COMPILER: "[email protected]_cuda" | ||
HOST_CONFIG: "lassen-blueos_3_ppc64le_ib_p9-${COMPILER}.cmake" | ||
extends: [.src_build_on_lassen] | ||
|
||
#### | ||
# Full Build jobs | ||
lassen-clang_10_0_1-full: | ||
|
@@ -98,16 +86,3 @@ lassen-gcc_8_3_1_cuda-full: | |
SPEC: "%${COMPILER}~mfem+cuda" | ||
EXTRA_SPEC: "cuda_arch=70" | ||
extends: [.full_build_on_lassen] | ||
|
||
lassen-xl_16_1_1-full: | ||
variables: | ||
COMPILER: "[email protected]" | ||
SPEC: "%${COMPILER}+mfem~openmp~cpp14" | ||
extends: [.full_build_on_lassen] | ||
|
||
lassen-xl_16_1_1_cuda-full: | ||
variables: | ||
COMPILER: "[email protected]" | ||
SPEC: "%${COMPILER}+mfem+cuda~openmp~cpp14" | ||
EXTRA_SPEC: "cuda_arch=70" | ||
extends: [.full_build_on_lassen] |
Oops, something went wrong.