Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install mpi4py with Intel MPI? #67

Closed
YarShev opened this issue Nov 21, 2023 · 10 comments
Closed

How to install mpi4py with Intel MPI? #67

YarShev opened this issue Nov 21, 2023 · 10 comments
Labels

Comments

@YarShev
Copy link

YarShev commented Nov 21, 2023

Comment:

@dalcinl, hi, I just saw you added Intel MPI build variant to the feedstock. I was wondering if it could be possible to install mpi4py with Intel MPI now from conda-forge?

@dalcinl
Copy link
Contributor

dalcinl commented Nov 22, 2023

I was wondering if it could be possible to install mpi4py with Intel MPI now from conda-forge?

Making that possible was the whole point of adding the build variant. To install mpi4py with Intel MPI you have to:

conda install -c conda-forge impi_rt mpi4py

Please note you can also reuse Intel MPI installed externally, and then install the MPICH external variant (and mpi4py and other MPI packages) in your environment. Just check the conda-forge docs for further details.

@YarShev
Copy link
Author

YarShev commented Nov 22, 2023

@dalcinl, when doing conda install -c conda-forge impi_rt mpi4py I see the following output.

Found conflicts! Looking for incompatible packages.
UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versions

Package mpi conflicts for:
mpi4py -> openmpi[version='>=4.1.6,<5.0a0'] -> mpi==1.0[build='mpich|openmpi']
impi_rt -> mpi==1.0=impi
The following specifications were found to be incompatible with your system:

  - feature:/linux-64::__glibc==2.35=0
  - feature:|@/linux-64::__glibc==2.35=0
  - mpi4py -> libgcc-ng[version='>=10.3.0'] -> __glibc[version='>=2.17']

Your installed version is: 2.35

My system version is the following.

$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

@dalcinl dalcinl reopened this Nov 22, 2023
@dalcinl
Copy link
Contributor

dalcinl commented Nov 22, 2023

Do you get that error when creating an environment from scratch or with an empty environment? Sorry, I cannot test myself on Linux right now.

@YarShev
Copy link
Author

YarShev commented Nov 22, 2023

My steps are the following.

conda create -n intel-mpi python=3.9
conda activate intel-mpi
conda install -c conda-forge impi_rt mpi4py
# and here error I mentioned above

@dalcinl
Copy link
Contributor

dalcinl commented Nov 22, 2023

OK, something seems to be broken, but I have no idea what's going on.

Maybe @minrk on @leofang can shed some light.

@oleksandr-pavlyk
Copy link

@dalcinl The issue appears to be that conda packages built for impi variants were not uploaded to the conda channel:

$ conda search -c conda-forge mpi4py --subdir=linux-64 --override-channels --info | grep impi | wc
      0       0       0
$ conda search -c conda-forge mpi4py --subdir=win-64 --override-channels --info | grep impi | wc
      0       0       0

There are there for mpich and openmpi:

$ conda search -c conda-forge mpi4py --subdir=linux-64 --override-channels --info | grep mpich | wc
    204     615    6164
$ conda search -c conda-forge mpi4py --subdir=linux-64 --override-channels --info | grep openmpi | wc
    191     586    6398

I can see that impi variants were successfully built during the last merged PR: #65

@conda-forge/core could you help investigate, please?

@beckermr
Copy link
Member

I see the packages https://anaconda.org/conda-forge/mpi4py/3.1.5/download/linux-64/mpi4py-3.1.5-py310h45b48a2_0.conda but they were marked broken for a reason I cannot quite recall.

@beckermr
Copy link
Member

yes see these issues:

We should bump the build number and rebuild and it will work.

@beckermr
Copy link
Member

See this one: #69

@leofang
Copy link
Member

leofang commented Mar 21, 2024

This should be fixed, if not please kindly open a new issue, thanks!

@leofang leofang closed this as completed Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants