Skip to content

Commit 099c8e9

Browse files
author
Terry Cojean
authored
Merge Release 1.5.0 to master
Release 1.5.0 of Ginkgo. The Ginkgo team is proud to announce the new Ginkgo minor release 1.5.0. This release brings many important new features such as: - MPI-based multi-node support for all matrix formats and most solvers; - full DPC++/SYCL support, - functionality and interface for GPU-resident sparse direct solvers, - an interface for wrapping solvers with scaling and reordering applied, - a new algebraic Multigrid solver/preconditioner, - improved mixed-precision support, - support for device matrix assembly, and much more. See PR: #1197 Complete release notes: https://github.com/ginkgo-project/ginkgo/blob/master/CHANGELOG.md
2 parents f811917 + 03b1323 commit 099c8e9

File tree

1,397 files changed

+636428
-82720
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,397 files changed

+636428
-82720
lines changed

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ PenaltyBreakFirstLessLess: 120
8686
PenaltyBreakString: 1000
8787
PenaltyExcessCharacter: 1000000
8888
PenaltyReturnTypeOnItsOwnLine: 200
89-
PointerAlignment: Right
89+
PointerAlignment: Left
9090
ReflowComments: true
9191
SortIncludes: true
9292
SortUsingDeclarations: true

.github/abidiff.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
pushd old
4+
source .github/bot-pr-base.sh
5+
popd
6+
7+
bot_delete_comments_matching "Note: This PR changes the Ginkgo ABI"
8+
9+
abidiff build-old/lib/libginkgod.so build-new/lib/libginkgod.so &> abi.diff || (bot_comment "Note: This PR changes the Ginkgo ABI:\n\`\`\`\n$(head -n2 abi.diff | tr '\n' ';' | sed 's/;/\\n/g')\`\`\`\nFor details check the full ABI diff under **Artifacts** [here]($JOB_URL)")

.github/bot-base.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -e
44

.github/bot-pr-base.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
source .github/bot-base.sh
44

5+
EXTENSION_REGEX='\.(cuh?|hpp|hpp\.inc?|cpp)$'
6+
FORMAT_HEADER_REGEX='^(benchmark|core|cuda|hip|include/ginkgo/core|omp|reference|dpcpp|common/unified|test)/'
7+
FORMAT_REGEX='^(common|examples)/'
8+
CLANG_FORMAT=clang-format-9
9+
510
echo -n "Collecting information on triggering PR"
611
PR_URL=$(jq -r .pull_request.url "$GITHUB_EVENT_PATH")
712
if [[ "$PR_URL" == "null" ]]; then

.github/bot-pr-format-base.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
source .github/bot-pr-base.sh
44

5-
EXTENSION_REGEX='\.(cuh?|hpp|hpp\.inc?|cpp)$'
6-
FORMAT_HEADER_REGEX='^(benchmark|core|cuda|hip|include/ginkgo/core|omp|reference|dpcpp)/'
7-
FORMAT_REGEX='^(common|examples|test)/'
8-
95
echo "Retrieving PR file list"
106
PR_FILES=$(bot_get_all_changed_files ${PR_URL})
117
NUM=$(echo "${PR_FILES}" | wc -l)
@@ -34,7 +30,6 @@ cp /tmp/format_header.sh dev_tools/scripts/
3430
cp /tmp/update_ginkgo_header.sh dev_tools/scripts/
3531

3632
# format files
37-
CLANG_FORMAT=clang-format-9
3833
dev_tools/scripts/add_license.sh
3934
dev_tools/scripts/update_ginkgo_header.sh
4035
for f in $(echo "$TO_FORMAT" | grep -E $FORMAT_HEADER_REGEX); do dev_tools/scripts/format_header.sh "$f"; done

.github/check-format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
cp .github/bot-pr-format-base.sh /tmp
44
source /tmp/bot-pr-format-base.sh

.github/format-rebase.sh

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/usr/bin/env bash
2+
3+
source .github/bot-pr-base.sh
4+
5+
git remote add base "$BASE_URL"
6+
git remote add fork "$HEAD_URL"
7+
8+
git remote -v
9+
10+
git fetch base $BASE_BRANCH
11+
git fetch fork $HEAD_BRANCH
12+
13+
git config user.email "$USER_EMAIL"
14+
git config user.name "$USER_NAME"
15+
16+
LOCAL_BRANCH=rebase-tmp-$HEAD_BRANCH
17+
git checkout -b $LOCAL_BRANCH fork/$HEAD_BRANCH
18+
19+
# save scripts from develop
20+
pushd dev_tools/scripts
21+
cp add_license.sh format_header.sh update_ginkgo_header.sh /tmp
22+
popd
23+
24+
bot_delete_comments_matching "Error: Rebase failed"
25+
26+
DIFF_COMMAND="git diff --name-only --no-renames --diff-filter=AM HEAD~ | grep -E '$EXTENSION_REGEX'"
27+
28+
# do the formatting rebase
29+
git rebase --rebase-merges --empty=drop --no-keep-empty \
30+
--exec "cp /tmp/add_license.sh /tmp/format_header.sh /tmp/update_ginkgo_header.sh dev_tools/scripts/ && \
31+
dev_tools/scripts/add_license.sh && dev_tools/scripts/update_ginkgo_header.sh && \
32+
for f in \$($DIFF_COMMAND | grep -E '$FORMAT_HEADER_REGEX'); do dev_tools/scripts/format_header.sh \$f; done && \
33+
for f in \$($DIFF_COMMAND | grep -E '$FORMAT_REGEX'); do $CLANG_FORMAT -i \$f; done && \
34+
git checkout dev_tools/scripts && (git diff >> /tmp/difflog; true) && (git diff --quiet || git commit -a --amend --no-edit --allow-empty)" \
35+
base/$BASE_BRANCH 2>&1 || bot_error "Rebase failed, see the related [Action]($JOB_URL) for details"
36+
37+
# repeat rebase to delete empty commits
38+
git rebase --rebase-merges --empty=drop --no-keep-empty --exec true \
39+
base/$BASE_BRANCH 2>&1 || bot_error "Rebase failed, see the related [Action]($JOB_URL) for details"
40+
41+
cp /tmp/difflog diff.patch
42+
43+
if [ -s diff.patch ]
44+
then
45+
bot_comment "Formatting rebase introduced changes, see Artifacts [here]($JOB_URL) to review them"
46+
fi
47+
48+
# push back
49+
git push --force-with-lease fork $LOCAL_BRANCH:$HEAD_BRANCH 2>&1 || bot_error "Cannot push rebased branch, are edits for maintainers allowed, or were changes pushed while the rebase was running?"

.github/format.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
cp .github/bot-pr-format-base.sh /tmp
44
source /tmp/bot-pr-format-base.sh
@@ -11,5 +11,5 @@ if [[ "$LIST_FILES" != "" ]]; then
1111
git commit -a -m "Format files
1212
1313
Co-authored-by: $USER_COMBINED"
14-
git push fork $LOCAL_BRANCH:$HEAD_BRANCH 2>&1 || bot_error "Cannot push formatted branch, are edits for maintainers allowed?"
14+
git push fork "$LOCAL_BRANCH:$HEAD_BRANCH" 2>&1 || bot_error "Cannot push formatted branch, are edits for maintainers allowed?"
1515
fi

.github/label.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
source .github/bot-pr-base.sh
44

55
echo "Retrieving PR file list"
6-
PR_FILES=$(bot_get_all_changed_files ${PR_URL})
6+
PR_FILES=$(bot_get_all_changed_files "${PR_URL}")
77
NUM=$(echo "${PR_FILES}" | wc -l)
88
echo "PR has ${NUM} changed files"
99

.github/mirror.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env bash
2+
3+
BRANCH_NAME=${BRANCH_NAME##*/}
4+
5+
git remote add fork "git@github.com:${GITHUB_REPO}.git"
6+
git remote add gitlab "git@gitlab.com:ginkgo-project/ginkgo-public-ci.git"
7+
8+
git remote -v
9+
10+
# Setup ssh
11+
eval $(ssh-agent -s)
12+
echo "${BOT_KEY}" | tr -d '\r' | ssh-add - >/dev/null
13+
mkdir -p ~/.ssh
14+
chmod 700 ~/.ssh
15+
ssh-keyscan -t rsa gitlab.com github.com >>~/.ssh/known_hosts
16+
17+
# Fetch from github
18+
git fetch fork "$BRANCH_NAME"
19+
git checkout -B "$BRANCH_NAME"
20+
git reset --hard fork/"$BRANCH_NAME"
21+
# Push to gitlab
22+
git push -u --force gitlab HEAD:$BRANCH_NAME

0 commit comments

Comments
 (0)