Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
technical:recipes:mpi4py-in-virtualenv [2024-03-07 16:51] – [DARWIN] anita | technical:recipes:mpi4py-in-virtualenv [2025-01-31 15:29] (current) – [VALET Package Definition] anita | ||
---|---|---|---|
Line 15: | Line 15: | ||
<WRAP center round info 60%> | <WRAP center round info 60%> | ||
- | On Caviness | + | Due to recent announcements regarding Anaconda, |
- | As of November 2020, the majority of packages populating the Intel channel require baseline operating system libraries (like '' | + | Please use '' |
</ | </ | ||
Line 174: | Line 174: | ||
<code bash> | <code bash> | ||
- | $ vpkg_require openmpi/4.0.2 intel-python/2020u2: | + | $ vpkg_require openmpi/4.1.4:gcc-12.1.0 anaconda/2024.02 |
- | Adding dependency `libfabric/ | + | Adding dependency `libfabric/ |
- | Adding package `openmpi/4.0.2` to your environment | + | Adding dependency `binutils/ |
- | Adding package `intel-python/2020u2: | + | Adding dependency `gcc/12.1.0` to your environment |
+ | Adding package `openmpi/4.1.4: | ||
+ | Adding package `anaconda/2024.02` to your environment | ||
</ | </ | ||
Line 185: | Line 187: | ||
<code bash> | <code bash> | ||
- | $ conda create --prefix ${HOME}/ | + | $ conda create --prefix ${HOME}/ |
Collecting package metadata (current_repodata.json): | Collecting package metadata (current_repodata.json): | ||
Solving environment: | Solving environment: | ||
Line 211: | Line 213: | ||
==== Building mpi4py ==== | ==== Building mpi4py ==== | ||
- | With the new virtual environment activated, we can now build mpi4py against the local Open MPI library we added to the shell environment. | + | With the new virtual environment activated, we can now build mpi4py against the local Open MPI library we added to the shell environment. Due to Anaconda trying to use a version of '' |
<code base> | <code base> | ||
+ | (/ | ||
(/ | (/ | ||
Collecting mpi4py | Collecting mpi4py | ||
- | Using cached mpi4py-3.0.3.tar.gz (1.4 MB) | + | Using cached mpi4py-4.0.1.tar.gz (466 kB) |
Skipping wheel build for mpi4py, due to binaries being disabled for it. | Skipping wheel build for mpi4py, due to binaries being disabled for it. | ||
Installing collected packages: mpi4py | Installing collected packages: mpi4py | ||
Running setup.py install for mpi4py ... done | Running setup.py install for mpi4py ... done | ||
- | Successfully installed mpi4py-3.0.3 | + | Successfully installed mpi4py-4.0.1 |
</ | </ | ||
- | The '' | + | The '' |
<code bash> | <code bash> | ||
(/ | (/ | ||
- | mpi4py | + | mpi4py |
</ | </ | ||
Line 260: | Line 263: | ||
description: | description: | ||
dependencies: | dependencies: | ||
- | - openmpi/4.0.2 | + | - openmpi/4.1.4: |
- | - intel-python/2020u2: | + | - anaconda/2024.02 |
</ | </ | ||
Line 282: | Line 285: | ||
<code bash> | <code bash> | ||
$ vpkg_require my-sci-app/ | $ vpkg_require my-sci-app/ | ||
- | Adding dependency `libfabric/ | + | Adding dependency `libfabric/ |
- | Adding dependency `openmpi/4.0.2` to your environment | + | Adding dependency |
- | Adding | + | Adding dependency `gcc/ |
+ | Adding package | ||
+ | Adding | ||
Adding package `my-sci-app/ | Adding package `my-sci-app/ | ||
(/ | (/ | ||
~/ | ~/ | ||
(/ | (/ | ||
- | mpi4py | + | mpi4py |
$ which mpirun | $ which mpirun | ||
- | / | + | / |
</ | </ | ||
Line 299: | Line 304: | ||
<code bash> | <code bash> | ||
- | $ vpkg_require openmpi/5.0.2:intel-oneapi-2024 intel-oneapi/2024 | + | $ vpkg_require openmpi/4.1.5:gcc-12.2 anaconda/2024.02 |
Adding dependency `gcc/ | Adding dependency `gcc/ | ||
- | Adding dependency `intel-oneapi/ | ||
Adding dependency `ucx/ | Adding dependency `ucx/ | ||
- | Adding package `openmpi/5.0.2:intel-oneapi-2024` to your environment | + | Adding package `openmpi/4.1.5:gcc-12.2` to your environment |
+ | Adding package `anaconda/2024.02:python3` to your environment | ||
</ | </ | ||
Line 311: | Line 316: | ||
<code bash> | <code bash> | ||
- | $ conda create --prefix ${HOME}/ | + | $ conda create --prefix ${HOME}/ |
Collecting package metadata (current_repodata.json): | Collecting package metadata (current_repodata.json): | ||
Solving environment: | Solving environment: | ||
Line 320: | Line 325: | ||
# To activate this environment, | # To activate this environment, | ||
# | # | ||
- | # $ conda activate / | + | # $ conda activate / |
# | # | ||
# To deactivate an active environment, | # To deactivate an active environment, | ||
Line 331: | Line 336: | ||
<code bash> | <code bash> | ||
- | $ conda activate / | + | $ conda activate / |
- | (/ | + | (/ |
</ | </ | ||
Line 340: | Line 345: | ||
<code base> | <code base> | ||
- | (/ | + | (/ |
+ | (/ | ||
+ | $ pip install --no-binary :all: --compile mpi4py | ||
Collecting mpi4py | Collecting mpi4py | ||
- | Downloading mpi4py-3.1.5.tar.gz (2.5 MB) | + | Downloading mpi4py-4.0.1.tar.gz (466 kB) |
- | | + | |
Installing build dependencies ... done | Installing build dependencies ... done | ||
Getting requirements to build wheel ... done | Getting requirements to build wheel ... done | ||
+ | Installing backend dependencies ... done | ||
Preparing metadata (pyproject.toml) ... done | Preparing metadata (pyproject.toml) ... done | ||
Building wheels for collected packages: mpi4py | Building wheels for collected packages: mpi4py | ||
Building wheel for mpi4py (pyproject.toml) ... done | Building wheel for mpi4py (pyproject.toml) ... done | ||
- | Created wheel for mpi4py: filename=mpi4py-3.1.5-cp310-cp310-linux_x86_64.whl size=634821 | + | Created wheel for mpi4py: filename=mpi4py-4.0.1-cp313-cp313-linux_x86_64.whl size=997834 |
- | Stored in directory: / | + | Stored in directory: / |
Successfully built mpi4py | Successfully built mpi4py | ||
Installing collected packages: mpi4py | Installing collected packages: mpi4py | ||
- | Successfully installed mpi4py-3.1.5 | + | Successfully installed mpi4py-4.0.1 |
</ | </ | ||
- | The '' | + | The '' |
<code bash> | <code bash> | ||
- | (/ | + | (/ |
- | mpi4py | + | mpi4py |
</ | </ | ||
Line 390: | Line 397: | ||
success: 0 | success: 0 | ||
versions: | versions: | ||
- | "20240307": | + | "20250121": |
- | description: | + | description: |
dependencies: | dependencies: | ||
- | - intel-oneapi/2024 | + | - openmpi/ |
+ | | ||
</ | </ | ||
Line 407: | Line 415: | ||
[/ | [/ | ||
my-sci-app | my-sci-app | ||
- | * 20240307 | + | * 20250125 |
</ | </ | ||
Line 413: | Line 421: | ||
<code bash> | <code bash> | ||
- | $ vpkg_require my-sci-app/20240307 | + | $ vpkg_require my-sci-app/20250121 |
Adding dependency `gcc/ | Adding dependency `gcc/ | ||
- | Adding dependency `intel-oneapi/2024.0.1.46` to your environment | + | Adding dependency `ucx/1.13.1` to your environment |
- | Adding package `my-sci-app/ | + | Adding dependency `openmpi/4.1.5: |
- | (/ | + | Adding dependency `anaconda/ |
- | ~/ | + | Adding package `my-sci-app/ |
- | (/ | + | (/ |
- | mpi4py | + | ~/ |
- | (/ | + | (/ |
- | / | + | / |
</ | </ | ||