Skip to content

Commit

Permalink
Disable silent-rules on CI
Browse files Browse the repository at this point in the history
When CI fails with weird compiler / linker issues, it is frequently
easier to debug when we have the exact compiler / linker flags that
were used.  Disable silent rules (ie, run like make V=1) when building
under CI.

Signed-off-by: Brian Barrett <[email protected]>
  • Loading branch information
bwbarrett committed Oct 8, 2024
1 parent d14af58 commit d4410ad
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .ci/community-jenkins/pr-builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ case ${PLATFORM_ID} in
CONFIGURE_ARGS="$CONFIGURE_ARGS LDFLAGS=-Wl,-rpath,/usr/local/lib/gcc5 --with-wrapper-ldflags=-Wl,-rpath,/usr/local/lib/gcc5"
;;
esac
CONFIGURE_ARGS="$CONFIGURE_ARGS --disable-silent-rules"

echo "--> Compiler setup: $CONFIGURE_ARGS"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/compile-cuda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ jobs:
- name: Build Open MPI
run: |
./autogen.pl
./configure --prefix=${PWD}/install --with-cuda=${CUDA_PATH} --with-cuda-libdir=${CUDA_PATH}/lib64/stubs
./configure --prefix=${PWD}/install --with-cuda=${CUDA_PATH} --with-cuda-libdir=${CUDA_PATH}/lib64/stubs --disable-silent-rules
make -j
2 changes: 1 addition & 1 deletion .github/workflows/compile-rocm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ jobs:
- name: Build Open MPI
run: |
./autogen.pl
./configure --prefix=${PWD}/install --with-rocm=/opt/rocm --disable-mpi-fortran
./configure --prefix=${PWD}/install --with-rocm=/opt/rocm --disable-mpi-fortran --disable-silent-rules
LD_LIBRARY_PATH=/opt/rocm/lib make -j
2 changes: 1 addition & 1 deletion .github/workflows/compile-ze.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ jobs:
#
# we have to disable romio as its old ze stuff doesn't compile with supported ZE API
#
./configure --prefix=${PWD}/install --disable-mpi-fortran --disable-io-romio --disable-oshmem --with-ze
./configure --prefix=${PWD}/install --disable-mpi-fortran --disable-io-romio --disable-oshmem --with-ze --disable-silent-rules
make -j
2 changes: 1 addition & 1 deletion .github/workflows/macos-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Build Open MPI
run: |
./autogen.pl
./configure --prefix=/opt/openmpi
./configure --prefix=/opt/openmpi --disable-silent-rules
make -j $(sysctl -n hw.logicalcpu)
- name: Run unit tests
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ompi_mpi4py.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
--disable-sphinx
--disable-mpi-fortran
--disable-oshmem
--disable-silent-rules
--prefix=/opt/openmpi
LDFLAGS=-Wl,-rpath,/opt/openmpi/lib
working-directory: mpi-build
Expand Down

0 comments on commit d4410ad

Please sign in to comment.