Skip to content

Commit

Permalink
switch to OpenMPI
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-at-orange committed Mar 25, 2024
1 parent cd44ed3 commit 192a662
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-linux-pack-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: docker/build-push-action@v2
with:
file: ./packaging/dockerfiles/Dockerfile.${{ matrix.os }}
tags: ghcr.io/${{ env.GH_REPOSITORY }}/khiopsdev-${{ matrix.os }}:latest
tags: ghcr.io/${{ env.GH_REPOSITORY }}/khiopsdev-new-${{ matrix.os }}:latest
push: true
- name: Display the image digest
run: echo ${{ steps.docker-build.outputs.digest }}
6 changes: 4 additions & 2 deletions .github/workflows/pack-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
matrix:
os: [debian10, debian11, debian12, ubuntu22.04, ubuntu20.04]
container:
image: ghcr.io/khiopsml/khiops/khiopsdev-${{ matrix.os }}:latest
image: ghcr.io/khiopsml/khiops/khiopsdev-new-${{ matrix.os }}:latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand All @@ -35,6 +35,8 @@ jobs:
echo "VERSION_CODENAME=$VERSION_CODENAME" >> "$GITHUB_ENV"
- name: Configure CMake
run: |
update-alternatives -set mpi /usr/bin/mpicc.openmpi
update-alternatives -set mpirun /usr/bin/mpirun.openmpi
cmake --preset linux-gcc-release -DBUILD_JARS=ON
- name: Build Khiops binaries
run: |
Expand Down Expand Up @@ -120,7 +122,7 @@ jobs:
matrix:
os: [debian10, debian11, debian12, ubuntu22.04, ubuntu20.04]
container:
image: ghcr.io/khiopsml/khiops/khiopsdev-${{ matrix.os }}:latest
image: ghcr.io/khiopsml/khiops/khiopsdev-new-${{ matrix.os }}:latest
steps:
- name: Put OS info on the environment
run: |
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/pack-rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
matrix:
os: [rocky8, rocky9]
container:
image: ghcr.io/khiopsml/khiops/khiopsdev-${{ matrix.os }}:latest
image: ghcr.io/khiopsml/khiops/khiopsdev-new-${{ matrix.os }}:latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand All @@ -35,7 +35,8 @@ jobs:
- name: Configure CMake
run: |
source /etc/profile.d/modules.sh
module load mpi/mpich-x86_64
module unload mpi
module load mpi/openmpi-x86_64
echo "MPI_SUFFIX=$MPI_SUFFIX" >> "$GITHUB_ENV"
cmake --preset linux-gcc-release -DBUILD_JARS=ON
- name: Build Khiops binaries
Expand Down Expand Up @@ -114,7 +115,7 @@ jobs:
matrix:
os: [rocky8, rocky9]
container:
image: ghcr.io/khiopsml/khiops/khiopsdev-${{ matrix.os }}:latest
image: ghcr.io/khiopsml/khiops/khiopsdev-new-${{ matrix.os }}:latest
steps:
- name: Put OS info on the environment
run: |
Expand Down
2 changes: 2 additions & 0 deletions packaging/dockerfiles/Dockerfile.debian10
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ RUN true \
devscripts \
fakeroot \
libmpich-dev \
openmpi-bin \
libopenmpi-dev \
nano \
ninja-build \
curl \
Expand Down
2 changes: 2 additions & 0 deletions packaging/dockerfiles/Dockerfile.debian11
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ RUN true \
devscripts \
fakeroot \
libmpich-dev \
openmpi-bin \
libopenmpi-dev \
nano \
ninja-build \
curl \
Expand Down
2 changes: 2 additions & 0 deletions packaging/dockerfiles/Dockerfile.debian12
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ RUN true \
devscripts \
fakeroot \
libmpich-dev \
openmpi-bin \
libopenmpi-dev \
nano \
ninja-build \
curl \
Expand Down
2 changes: 2 additions & 0 deletions packaging/dockerfiles/Dockerfile.rocky8
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ RUN true \
gcc-c++ \
java-17-openjdk-devel \
mpich-devel \
openmpi \
openmpi-devel \
nano \
ninja-build \
rpm-build \
Expand Down
2 changes: 2 additions & 0 deletions packaging/dockerfiles/Dockerfile.rocky9
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ RUN true \
gcc-c++ \
java-17-openjdk-devel \
mpich-devel \
openmpi \
openmpi-devel \
nano \
ninja-build \
rpm-build \
Expand Down
2 changes: 2 additions & 0 deletions packaging/dockerfiles/Dockerfile.ubuntu18.04
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ RUN true \
devscripts \
fakeroot \
libmpich-dev \
openmpi-bin \
libopenmpi-dev \
nano \
ninja-build \
curl \
Expand Down
2 changes: 2 additions & 0 deletions packaging/dockerfiles/Dockerfile.ubuntu20.04
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ RUN true \
devscripts \
fakeroot \
libmpich-dev \
openmpi-bin \
libopenmpi-dev \
nano \
ninja-build \
curl \
Expand Down
2 changes: 2 additions & 0 deletions packaging/dockerfiles/Dockerfile.ubuntu22.04
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ RUN true \
devscripts \
fakeroot \
libmpich-dev \
openmpi-bin \
libopenmpi-dev \
nano \
ninja-build \
curl \
Expand Down
4 changes: 2 additions & 2 deletions packaging/linux/common/khiops_coclustering
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$KHIOPS_JAVA_PATH
if [[ $# -eq 0 ]]; then
# run without parameters
# run and save scenario and log files in directory KHIOPS_LAST_RUN_DIR
mpiexec -n 1 MODL_Coclustering -o "${KHIOPS_LAST_RUN_DIR}"/scenario._kh -e "${KHIOPS_LAST_RUN_DIR}"/log.txt
MODL_Coclustering -o "${KHIOPS_LAST_RUN_DIR}"/scenario._kh -e "${KHIOPS_LAST_RUN_DIR}"/log.txt
else
# run with parameters
mpiexec -n 1 MODL_Coclustering "$@"
MODL_Coclustering "$@"
fi

exit $?

0 comments on commit 192a662

Please sign in to comment.