Skip to content

Commit fc967ba

Browse files
authored
Merge branch 'development' into lizmcole/Richardson-convergence-test-MHD
2 parents 2114102 + 1852bc6 commit fc967ba

240 files changed

Lines changed: 3534 additions & 1042 deletions

File tree

Some content is hidden

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

.ci/azure-pipelines-amdgpu.yml

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,30 @@
44
# https://aka.ms/yaml
55

66
trigger:
7-
- development
7+
branches:
8+
include:
9+
- development
10+
paths:
11+
include:
12+
- src/**
13+
- tests/**
14+
- inputs/**
15+
- CMakeLists.txt
16+
- .ci/azure-pipelines-amdgpu.yml
17+
- extern/cooling/*.h5
18+
- extern/amrex/**
19+
- extern/Microphysics/**
20+
- extern/fmt/**
21+
- extern/yaml-cpp/**
22+
- extern/openPMD-api/**
23+
- extern/AMReX-Hydro/**
24+
exclude:
25+
- docs/**
26+
- paper/**
27+
- scripts/**
28+
- '*.md'
29+
- '*.rst'
30+
- '*.txt'
831

932
pr:
1033
autoCancel: true
@@ -13,20 +36,23 @@ pr:
1336
- development
1437
paths:
1538
include:
16-
- src/*
17-
- tests/*
18-
- inputs/*
39+
- src/**
40+
- tests/**
41+
- inputs/**
1942
- CMakeLists.txt
20-
- .ci/*
21-
- extern/amrex
22-
- extern/Microphysics
23-
- extern/fmt
24-
- extern/yaml-cpp
25-
- extern/openPMD-api
43+
- .ci/azure-pipelines-amdgpu.yml
44+
- extern/cooling/*.h5
45+
- extern/amrex/**
46+
- extern/Microphysics/**
47+
- extern/fmt/**
48+
- extern/yaml-cpp/**
49+
- extern/openPMD-api/**
50+
- extern/AMReX-Hydro/**
51+
- extern/turbulence/**
2652
exclude:
27-
- docs/*
28-
- paper/*
29-
- scripts/*
53+
- docs/**
54+
- paper/**
55+
- scripts/**
3056
- '*.md'
3157
- '*.rst'
3258
- '*.txt'

.ci/azure-pipelines.yml

Lines changed: 38 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,29 @@
44
# https://aka.ms/yaml
55

66
trigger:
7-
- development
7+
branches:
8+
include:
9+
- development
10+
paths:
11+
include:
12+
- src/**
13+
- inputs/**
14+
- CMakeLists.txt
15+
- .ci/azure-pipelines.yml
16+
- extern/cooling/*.h5
17+
- extern/amrex/**
18+
- extern/Microphysics/**
19+
- extern/fmt/**
20+
- extern/yaml-cpp/**
21+
- extern/openPMD-api/**
22+
- extern/AMReX-Hydro/**
23+
exclude:
24+
- docs/**
25+
- paper/**
26+
- scripts/**
27+
- '*.md'
28+
- '*.rst'
29+
- '*.txt'
830

931
pr:
1032
autoCancel: true
@@ -13,19 +35,23 @@ pr:
1335
- development
1436
paths:
1537
include:
16-
- src/*
17-
- inputs/*
38+
- src/**
39+
- tests/**
40+
- inputs/**
1841
- CMakeLists.txt
19-
- .ci/*
20-
- extern/amrex
21-
- extern/Microphysics
22-
- extern/fmt
23-
- extern/yaml-cpp
24-
- extern/openPMD-api
42+
- .ci/azure-pipelines.yml
43+
- extern/cooling/*.h5
44+
- extern/amrex/**
45+
- extern/Microphysics/**
46+
- extern/fmt/**
47+
- extern/yaml-cpp/**
48+
- extern/openPMD-api/**
49+
- extern/AMReX-Hydro/**
50+
- extern/turbulence/**
2551
exclude:
26-
- docs/*
27-
- paper/*
28-
- scripts/*
52+
- docs/**
53+
- paper/**
54+
- scripts/**
2955
- '*.md'
3056
- '*.rst'
3157
- '*.txt'

.devcontainer/rocm-container/Dockerfile

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,33 @@ RUN if ! zypper repos -E | grep devel_languages_perl; then \
2020
zypper clean --all && \
2121
cat rocm_so.conf >> /etc/ld.so.conf.d/rocm.conf && \
2222
rm rocm_so.conf && \
23-
ldconfig
23+
ldconfig
2424

2525
ENV PATH="/opt/rocm/bin:${PATH}" \
2626
LD_LIBRARY_PATH="/opt/rocm/lib:${LD_LIBRARY_PATH}"
2727

28-
RUN zypper --non-interactive install wget tar gzip gcc gcc-fortran file gcc-c++ make && zypper clean --all && \
28+
COPY mpich-4.1.2-rocm-6.4-hip-pointer-attr.patch /tmp/mpich-4.1.2-rocm-6.4-hip-pointer-attr.patch
29+
30+
RUN zypper --non-interactive install wget tar gzip gcc gcc-fortran file gcc-c++ make patch && zypper clean --all && \
2931
if [ ! -z "$(gcc --version | grep -Eo -m 1 [0-9][0-9]+\.[0-9]+\.[0-9]+ | grep -m 1 [0-9])" ]; then \
3032
export FFLAGS=-fallow-argument-mismatch; \
3133
fi && \
32-
wget --progress=bar:force https://www.mpich.org/static/downloads/3.4.3/mpich-3.4.3.tar.gz && \
33-
tar xzf mpich-3.4.3.tar.gz && \
34-
cd mpich-3.4.3 && \
35-
./configure --with-device=ch4:ofi --prefix=/opt/mpich/3.4.3 --with-hip=/opt/rocm/hip && \
34+
wget --progress=bar:force https://www.mpich.org/static/downloads/4.1.2/mpich-4.1.2.tar.gz && \
35+
tar xzf mpich-4.1.2.tar.gz && \
36+
cd mpich-4.1.2 && \
37+
patch -p1 < /tmp/mpich-4.1.2-rocm-6.4-hip-pointer-attr.patch && \
38+
./configure --with-device=ch4:ofi --prefix=/opt/mpich/4.1.2 && \
3639
make install -j7 && \
3740
cd / && \
38-
rm -rf mpich-3.4.3/ mpich-3.4.3.tar.gz
39-
40-
ENV MPICH_VERSION="3.4.3" \
41-
MPICH_URL="https://www.mpich.org/static/downloads/3.4.3/mpich-3.4.3.tar.gz" \
42-
MPICH_DIR="/opt/mpich/3.4.3" \
43-
PATH="/opt/mpich/3.4.3/bin:$PATH" \
44-
LIBRARY_PATH="/opt/mpich/3.4.3/lib:$LIBRARY_PATH" \
45-
LD_LIBRARY_PATH="/opt/mpich/3.4.3/lib:$LD_LIBRARY_PATH" \
46-
MANPATH="/opt/mpich/3.4.3/share/man:$MANPATH"
41+
rm -rf mpich-4.1.2/ mpich-4.1.2.tar.gz
42+
43+
ENV MPICH_VERSION="4.1.2" \
44+
MPICH_URL="https://www.mpich.org/static/downloads/4.1.2/mpich-4.1.2.tar.gz" \
45+
MPICH_DIR="/opt/mpich/4.1.2" \
46+
PATH="/opt/mpich/4.1.2/bin:$PATH" \
47+
LIBRARY_PATH="/opt/mpich/4.1.2/lib:$LIBRARY_PATH" \
48+
LD_LIBRARY_PATH="/opt/mpich/4.1.2/lib:$LD_LIBRARY_PATH" \
49+
MANPATH="/opt/mpich/4.1.2/share/man:$MANPATH"
4750

4851
# Install CMake
4952
RUN zypper --non-interactive install cmake && zypper clean --all
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
diff --git a/src/mpl/src/gpu/mpl_gpu_hip.c b/src/mpl/src/gpu/mpl_gpu_hip.c
2+
index f6a2df3..b2c5954 100644
3+
--- a/src/mpl/src/gpu/mpl_gpu_hip.c
4+
+++ b/src/mpl/src/gpu/mpl_gpu_hip.c
5+
@@ -90,7 +90,13 @@ int MPL_gpu_query_pointer_attr(const void *ptr, MPL_pointer_attr_t * attr)
6+
hipError_t ret;
7+
ret = hipPointerGetAttributes(&attr->device_attr, ptr);
8+
if (ret == hipSuccess) {
9+
- switch (attr->device_attr.memoryType) {
10+
+#if defined(HIP_VERSION_MAJOR) && (HIP_VERSION_MAJOR >= 6)
11+
+ /* ROCm 6+ uses hipPointerAttribute_t::type */
12+
+ enum hipMemoryType memory_type = attr->device_attr.type;
13+
+#else
14+
+ enum hipMemoryType memory_type = attr->device_attr.memoryType;
15+
+#endif
16+
+ switch (memory_type) {
17+
case hipMemoryTypeHost:
18+
attr->type = MPL_GPU_POINTER_REGISTERED_HOST;
19+
attr->device = attr->device_attr.device;

.dockerignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.git
2+
.gitmodules
3+
.github/workflows/**/node_modules
4+
.vscode
5+
6+
# Local build artifacts
7+
build/
8+
cmake-build-*/
9+
10+
# Large CI/regression assets (not needed for container builds)
11+
tests/
12+
13+
# Developer-facing content (not needed for container builds)
14+
docs/
15+
paper/
16+
scripts/
17+
18+
# OS/editor noise
19+
**/.DS_Store

.github/workflows/check_changes.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_call:
55
inputs:
66
workflow_file:
7-
description: 'Specific workflow file to check for changes (optional)'
7+
description: "Specific workflow file to check for changes (optional)"
88
required: false
99
type: string
1010
outputs:
@@ -35,7 +35,7 @@ jobs:
3535
has_workflow_changes: ${{ steps.set-output.outputs.has_workflow_changes }}
3636
has_specific_workflow_changes: ${{ steps.set-output.outputs.has_specific_workflow_changes }}
3737
steps:
38-
- uses: actions/checkout@v6.0.1
38+
- uses: actions/checkout@v6
3939
- uses: dorny/paths-filter@v3
4040
id: changes
4141
with:
@@ -52,6 +52,7 @@ jobs:
5252
- 'extern/grackle_data_files/**'
5353
- 'extern/openPMD-api/**'
5454
- 'extern/yaml-cpp/**'
55+
- 'extern/turbulence/**'
5556
- 'inputs/**'
5657
- 'CMakeLists.txt'
5758
- '**/*.cpp'

.github/workflows/clang-tidy-comments.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: ZedThree/clang-tidy-review/post@8e835e573551b213a7da2ccb4e9560a4785e46f4
17+
- uses: ZedThree/clang-tidy-review/post@ec87cf75b3717b78d2c953c6530b6378467d5300
1818
# lgtm_comment_body, max_comments, and annotations need to be set on the posting workflow in a split setup
1919
with:
2020
# adjust options as necessary

.github/workflows/clang-tidy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
submodules: true
2727
fetch-depth: 0
2828

29-
- uses: ZedThree/clang-tidy-review@8e835e573551b213a7da2ccb4e9560a4785e46f4 # v0.22.2
29+
- uses: ZedThree/clang-tidy-review@ec87cf75b3717b78d2c953c6530b6378467d5300 # v0.22.3
3030
id: review
3131
with:
3232
config_file: src/.clang-tidy
@@ -36,7 +36,7 @@ jobs:
3636
split_workflow: true
3737

3838
# Uploads an artefact containing clang_fixes.json
39-
- uses: ZedThree/clang-tidy-review/upload@8e835e573551b213a7da2ccb4e9560a4785e46f4 # v0.22.2
39+
- uses: ZedThree/clang-tidy-review/upload@ec87cf75b3717b78d2c953c6530b6378467d5300 # v0.22.3
4040

4141
# If there are any comments, fail the check
4242
- if: steps.review.outputs.total_comments > 0

.github/workflows/claude-code-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747

4848
- name: Run Claude Code Review
4949
id: claude-review
50-
uses: anthropics/claude-code-action@f0c8eb29807907de7f5412d04afceb5e24817127 # beta
50+
uses: anthropics/claude-code-action@7145c3e0510bcdbdd29f67cc4a8c1958f1acfa2f # beta
5151
with:
5252
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
5353

.github/workflows/claude.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
- name: Run Claude Code
3434
id: claude
35-
uses: anthropics/claude-code-action@f0c8eb29807907de7f5412d04afceb5e24817127 # beta
35+
uses: anthropics/claude-code-action@7145c3e0510bcdbdd29f67cc4a8c1958f1acfa2f # beta
3636
with:
3737
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
3838

0 commit comments

Comments
 (0)