Skip to content

Commit

Permalink
WIP openmpi conda
Browse files Browse the repository at this point in the history
  • Loading branch information
folmos-at-orange committed Apr 16, 2024
1 parent 5b9f25e commit a4876f1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
# In Linux/macOS we need the conda-forge channel to install their pinned versions
- name: Install the Conda package (Linux/macOS)
if: runner.os != 'Windows'
run: conda install --channel conda-forge --channel ./build/conda khiops-core
run: conda install --channel ./build/conda khiops-core
- name: Test that the executables are installed
run: |
MODL -v
Expand Down
15 changes: 13 additions & 2 deletions packaging/conda/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,19 @@ cmake --fresh --preset $CMAKE_PRESET -DBUILD_JARS=OFF -DTESTING=OFF
cmake --build --preset $CMAKE_PRESET --parallel --target MODL MODL_Coclustering

# Copy the MODL binaries to the Conda PREFIX path
cp "./build/$CMAKE_PRESET/bin/MODL" "$PREFIX/bin"
cp "./build/$CMAKE_PRESET/bin/MODL_Coclustering" "$PREFIX/bin"
ls -ltr "./build/$CMAKE_PRESET/bin"
cp "./build/$CMAKE_PRESET/bin/MODL*" "$PREFIX/bin"

# Make symbolic links for MODL in Linux since it has a prefix depending of the MPI version
if [[ "$(uname)" == "Linux" ]]
then
if [[ -f "$PREFIX/bin/MODL_mpich" ]]
then
ln -s "$PREFIX/bin/MODL" "$PREFIX/bin/MODL_mpich"
else
ln -s "$PREFIX/bin/MODL" "$PREFIX/bin/MODL_openmpi"
fi
fi

# Custom rpath relocation and signing executables for macOS in arm64
#
Expand Down
30 changes: 10 additions & 20 deletions packaging/conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,35 +26,25 @@ build:
detect_binary_files_with_prefix: false # [osx]
{% endif %}

# Note on version pinning:
# OSX:
# - mpich=3.4.3 because 4.* is still unstable
# - requires conda-forge
# Linux:
# - mpich=4.0.3 because of bugs of the 3.* series
# - requires conda-forge
requirements:
build:
- mpich 4.0.3 # [linux]
- mpich-mpicc 4.0.3 # [linux]
- mpich-mpicxx 4.0.3 # [linux]
- mpich 3.4.3 # [osx]
- mpich-mpicc 3.4.3 # [osx]
- mpich-mpicxx 3.4.3 # [osx]
- openmpi # [not win]
- openmpi-mpicc # [not win]
- openmpi-mpicxx # [not win]
- msmpi # [win]
- cmake
- ninja
- {{ compiler('cxx') }}
host:
- mpich 4.0.3 # [linux]
- mpich-mpicxx 4.0.3 # [linux]
- mpich 3.4.3 # [osx]
- mpich-mpicxx 3.4.3 # [osx]
- openmpi # [not win]
- openmpi-mpicc # [not win]
- openmpi-mpicxx # [not win]
- msmpi # [win]
run:
- mpich 4.0.3 # [linux]
- mpich 3.4.3 # [osx]
- msmpi # [win]
- openmpi # [not win]
- openmpi-mpicc # [not win]
- openmpi-mpicxx # [not win]
- msmpi # [win]

outputs:
- name: khiops-core
Expand Down

0 comments on commit a4876f1

Please sign in to comment.