Skip to content

Commit 1e474f1

Browse files
authored
Merge branch 'master' into fix/viscous-3d-gpu-private
2 parents 7fcb80a + 29f0da5 commit 1e474f1

6 files changed

Lines changed: 31 additions & 25 deletions

File tree

.github/workflows/bench.yml

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

2929
self:
3030
name: "${{ matrix.name }} (${{ matrix.device }}${{ matrix.interface != 'none' && format('-{0}', matrix.interface) || '' }})"
31-
if: ${{ github.repository=='MFlowCode/MFC' && needs.file-changes.outputs.checkall=='true' && ((github.event_name=='pull_request_review' && github.event.review.state=='approved') || (github.event_name=='pull_request' && (github.event.pull_request.user.login=='sbryngelson' || github.event.pull_request.user.login=='wilfonba')) || github.event_name=='workflow_dispatch') }}
31+
if: ${{ github.repository=='MFlowCode/MFC' && needs.file-changes.outputs.checkall=='true' && github.event.pull_request.draft != true && ((github.event_name=='pull_request_review' && github.event.review.state=='approved') || (github.event_name=='pull_request' && (github.event.pull_request.user.login=='sbryngelson' || github.event.pull_request.user.login=='wilfonba')) || github.event_name=='workflow_dispatch') }}
3232
needs: file-changes
3333
strategy:
3434
fail-fast: false

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

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
id-token: write
1616

1717
steps:
18-
# IMPORTANT: checkout BASE repo only (safe on forks)
1918
- name: Checkout base repo (safe)
2019
uses: actions/checkout@v4
2120
with:
@@ -32,16 +31,14 @@ jobs:
3231

3332
claude_args: >
3433
--dangerously-skip-permissions
35-
--max-turns 30
34+
--max-turns 60
3635
--allowedTools
3736
"Bash(gh pr view:*)"
3837
"Bash(gh pr diff:*)"
3938
"Bash(gh pr comment:*)"
40-
"Bash(gh pr list:*)"
41-
"Bash(gh pr status:*)"
42-
"Bash(gh issue comment:*)"
4339
"Bash(gh api:*)"
44-
"Bash(cat:*)"
40+
"Bash(cat CLAUDE.md:*)"
41+
"Bash(cat .claude/rules/*:*)"
4542
"Bash(ls:*)"
4643
"Bash(grep:*)"
4744
"Bash(find:*)"
@@ -58,26 +55,31 @@ jobs:
5855
"Bash(python3:*)"
5956
6057
prompt: |
61-
You are running in pull_request_target. DO NOT execute or inspect the fork's checked-out code.
58+
You are running in pull_request_target. DO NOT execute or inspect PR fork code.
6259
Review ONLY via GitHub API/gh commands.
6360
64-
Always use numeric PR form with --repo:
65-
- gh pr view ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --json files,title,body
66-
- gh pr diff ${{ github.event.pull_request.number }} --repo ${{ github.repository }}
61+
Read local guidance ONLY from:
62+
- CLAUDE.md (root) if present
63+
- .claude/rules/*.md if present
64+
Do NOT read any other workspace files.
6765
68-
If CLAUDE.md exists in the base repo checkout, read it with:
69-
- cat CLAUDE.md
70-
Prefer jq/python3 for JSON parsing instead of shell loops.
66+
Keep tool calls minimal:
67+
1) ls .claude/rules || true
68+
2) If CLAUDE.md exists: cat CLAUDE.md
69+
3) If .claude/rules exists: cat each .md file directly (no loops; at most 10 files)
70+
4) gh pr view ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --json title,body,files,changedFiles,additions,deletions,headRefOid
71+
5) gh pr diff ${{ github.event.pull_request.number }} --repo ${{ github.repository }}
72+
6) Post ONE top-level comment.
7173
72-
Output requirements (even if no issues):
73-
- Files changed count + list up to 15 file paths
74+
Output format:
75+
- Head SHA
76+
- Files changed count + list up to 10 file paths
7477
- Summary (3–6 bullets)
75-
- Findings:
76-
- If issues: include file + line numbers when possible
77-
- If no issues: at least 3 concrete improvement opportunities with file paths
78+
- Findings with file + line numbers when possible
79+
- If no issues: 0–3 improvement opportunities (only if confident)
7880
7981
Post ONE top-level PR comment titled "Claude Code Review".
80-
If posting a PR comment is blocked, write the full review to the GitHub Actions job summary instead.
82+
Then stop.
8183
8284
additional_permissions: |
8385
actions: read

.github/workflows/test.yml

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

152152
self:
153153
name: "${{ matrix.cluster_name }} (${{ matrix.device }}${{ matrix.interface != 'none' && format('-{0}', matrix.interface) || '' }})"
154-
if: github.repository == 'MFlowCode/MFC' && needs.file-changes.outputs.checkall == 'true'
154+
if: github.repository == 'MFlowCode/MFC' && needs.file-changes.outputs.checkall == 'true' && github.event.pull_request.draft != true
155155
needs: [lint-gate, file-changes]
156156
continue-on-error: false
157157
timeout-minutes: 480

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ if (CMAKE_BUILD_TYPE STREQUAL "Release")
238238
if (CMAKE_Fortran_COMPILER_ID STREQUAL "NVHPC")
239239
if (MFC_Unified)
240240
message(STATUS "LTO/IPO is not available with NVHPC using Unified Memory")
241+
elseif (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER "24.11" AND CMAKE_Fortran_COMPILER_VERSION VERSION_LESS "25.9")
242+
message(STATUS "LTO/IPO is not supported in NVHPC Version 24.11 to 25.9. Use >=25.9 or (<=24.11 && > 23.11) Performance will be degraded.")
243+
set(NVHPC_USE_TWO_PASS_IPO FALSE)
241244
elseif(CMAKE_Fortran_COMPILER_VERSION VERSION_LESS "23.11")
242245
message(STATUS "LTO/IPO is not supported in NVHPC Version < 23.11. Use a newer version of NVHPC for best performance.")
243246
else()

toolchain/modules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ tuo-gpu craype-accel-amd-gfx942
5757
tuo-gpu HSA_XNACK=0
5858

5959
d NCSA Delta
60-
d-all python/3.11.6
60+
d-all python
6161
d-cpu gcc/11.4.0 openmpi
62-
d-gpu nvhpc/24.1 cuda/12.3.0 openmpi/4.1.5+cuda cmake
62+
d-gpu PrgEnv-nvidia/8.6.0
6363
d-gpu CC=nvc CXX=nvc++ FC=nvfortran
6464
d-gpu MFC_CUDA_CC=80,86
6565

toolchain/templates/delta.mako

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ cd "${MFC_ROOT_DIR}"
3636
cd - > /dev/null
3737
echo
3838

39-
# Fixes Delta not being able to find core library file
40-
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/sw/spack/deltas11-2023-03/apps/linux-rhel8-zen3/nvhpc-24.1/openmpi-4.1.5-zkiklxi/lib/
39+
% if gpu_enabled:
40+
export MPICH_GPU_SUPPORT_ENABLED=0 # Disable GPU-Direct MPI
41+
% endif
4142

4243
% for target in targets:
4344
${helpers.run_prologue(target)}

0 commit comments

Comments
 (0)