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-11-22 14:46] – [Building mpi4py] 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 263: | Line 263: | ||
description: | description: | ||
dependencies: | dependencies: | ||
- | - openmpi/4.0.2 | + | - openmpi/4.1.4: |
- | - intel-python/2020u2: | + | - anaconda/2024.02 |
</ | </ | ||
Line 285: | 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 302: | 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 314: | 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 323: | 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 334: | Line 336: | ||
<code bash> | <code bash> | ||
- | $ conda activate / | + | $ conda activate / |
- | (/ | + | (/ |
</ | </ | ||
Line 343: | 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 393: | Line 397: | ||
success: 0 | success: 0 | ||
versions: | versions: | ||
- | "20240307": | + | "20250121": |
- | description: | + | description: |
dependencies: | dependencies: | ||
- | - openmpi/5.0.2:intel-oneapi-2024 | + | - openmpi/4.1.5:gcc-12.2 |
- | - intel-oneapi/2024 | + | - anaconda/2024.02 |
</ | </ | ||
Line 411: | Line 415: | ||
[/ | [/ | ||
my-sci-app | my-sci-app | ||
- | * 20240307 | + | * 20250125 |
</ | </ | ||
Line 417: | 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/ | ||
Adding dependency `ucx/ | Adding dependency `ucx/ | ||
- | Adding dependency `openmpi/5.0.2:intel-oneapi-2024` to your environment | + | Adding dependency `openmpi/4.1.5:gcc-12.2` to your environment |
- | Adding package `my-sci-app/ | + | Adding dependency `anaconda/2024.02:python3` to your environment |
- | (/ | + | Adding package `my-sci-app/ |
- | ~/ | + | (/ |
- | (/ | + | ~/ |
- | mpi4py | + | (/ |
- | (/ | + | / |
- | / | + | |
</ | </ | ||