Skip to content

Commit 88133d3

Browse files
committed
ci: add -tp=px -Kieee -noswitcherror for NVHPC Docker builds, verbose output
1 parent 0c6bbde commit 88133d3

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,9 @@ jobs:
224224
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: ${{ matrix.nvhpc && '1' || '' }}
225225
PMIX_MCA_gds: ${{ matrix.nvhpc && 'hash' || '' }}
226226
OMPI_MCA_hwloc_base_binding_policy: ${{ matrix.nvhpc && 'none' || '' }}
227+
FFLAGS: ${{ matrix.nvhpc && '-tp=px -Kieee -noswitcherror' || '' }}
228+
CFLAGS: ${{ matrix.nvhpc && '-tp=px' || '' }}
229+
CXXFLAGS: ${{ matrix.nvhpc && '-tp=px' || '' }}
227230

228231
steps:
229232
- name: Git safe directory
@@ -319,6 +322,13 @@ jobs:
319322
echo "PMIX_MCA_gds=hash" >> $GITHUB_ENV
320323
echo "OMPI_MCA_hwloc_base_binding_policy=none" >> $GITHUB_ENV
321324
echo "OMPI_MCA_rmaps_base_oversubscribe=1" >> $GITHUB_ENV
325+
# Debug: confirm compiler flags are set
326+
echo "=== NVHPC Environment ==="
327+
echo "FFLAGS=$FFLAGS"
328+
echo "CFLAGS=$CFLAGS"
329+
echo "CXXFLAGS=$CXXFLAGS"
330+
nvfortran --version
331+
cat /proc/cpuinfo | grep "model name" | head -1
322332
323333
# --- Standard build + test ---
324334
- name: Build
@@ -341,19 +351,19 @@ jobs:
341351
# --- NVHPC build + test ---
342352
- name: Build (NVHPC)
343353
if: matrix.nvhpc && matrix.target == 'cpu'
344-
run: /bin/bash mfc.sh test -v --dry-run -j $(nproc) --test-all
354+
run: /bin/bash mfc.sh test -vv --dry-run -j $(nproc) --test-all
345355

346356
- name: Build (NVHPC GPU)
347357
if: matrix.nvhpc && matrix.target == 'gpu'
348358
run: |
349-
/bin/bash mfc.sh test -v --dry-run -j 2 --test-all --gpu acc
350-
/bin/bash mfc.sh test -v --dry-run -j 2 --test-all --gpu mp
359+
/bin/bash mfc.sh test -vv --dry-run -j 2 --test-all --gpu acc
360+
/bin/bash mfc.sh test -vv --dry-run -j 2 --test-all --gpu mp
351361
352362
- name: Test (NVHPC)
353363
if: matrix.nvhpc && matrix.target == 'cpu'
354364
run: |
355365
ulimit -s unlimited || ulimit -s 65536 || true
356-
/bin/bash mfc.sh test -v --max-attempts 3 -j $(nproc) --test-all
366+
/bin/bash mfc.sh test -vv --max-attempts 3 -j $(nproc) --test-all
357367
358368
self:
359369
name: "${{ matrix.cluster_name }} (${{ matrix.device }}${{ matrix.interface != 'none' && format('-{0}', matrix.interface) || '' }}${{ matrix.shard != '' && format(' [{0}]', matrix.shard) || '' }})"

0 commit comments

Comments
 (0)