conda-forge / openmpi-feedstock

A conda-smithy repository for openmpi.
BSD 3-Clause "New" or "Revised" License
9 stars 25 forks source link

Use CUDA 10.2 to build but pin lower bound to 9.2 #80

Closed leofang closed 3 years ago

leofang commented 3 years ago

Currently one of the migrators puts openmpi in an unsolvable state: https://github.com/regro/autotick-bot/runs/1984377831?check_suite_focus=true#step:10:3544 It's likely because of the recent decision to reduce the default CUDA build matrix to 10.2+, but we currently use 9.2 to build.

This PR updates the build environment to 10.2, but since Open MPI doesn't care about the CUDA version at all, we can still allow 9.2 to be used at runtime.

MNT: Re-rendered with conda-build 3.20.3, conda-smithy 3.9.0, and conda-forge-pinning 2021.02.25.22.01.04

Checklist

conda-forge-linter commented 3 years ago

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

leofang commented 3 years ago

Verified locally that it works:

$ conda create -n test2 -c conda-forge cudatoolkit=9.2 openmpi
Collecting package metadata (current_repodata.json): done
Solving environment: done

==> WARNING: A newer version of conda exists. <==
  current version: 4.8.3
  latest version: 4.9.2

Please update conda by running

    $ conda update -n base -c defaults conda

## Package Plan ##

  environment location: /home/leofang/miniconda3/envs/test2

  added / updated specs:
    - cudatoolkit=9.2
    - openmpi

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    cudatoolkit-9.2.148        |       h80a95b2_8       311.6 MB  conda-forge
    openmpi-4.1.0              |       hbfc84c5_2         3.9 MB  conda-forge
    ------------------------------------------------------------
                                           Total:       315.5 MB

The following NEW packages will be INSTALLED:

  _libgcc_mutex      conda-forge/linux-64::_libgcc_mutex-0.1-conda_forge
  _openmp_mutex      conda-forge/linux-64::_openmp_mutex-4.5-1_gnu
  cudatoolkit        conda-forge/linux-64::cudatoolkit-9.2.148-h80a95b2_8
  libgcc-ng          conda-forge/linux-64::libgcc-ng-9.3.0-h2828fa1_18
  libgfortran-ng     conda-forge/linux-64::libgfortran-ng-9.3.0-hff62375_18
  libgfortran5       conda-forge/linux-64::libgfortran5-9.3.0-hff62375_18
  libgomp            conda-forge/linux-64::libgomp-9.3.0-h2828fa1_18
  libstdcxx-ng       conda-forge/linux-64::libstdcxx-ng-9.3.0-h6de172a_18
  mpi                conda-forge/linux-64::mpi-1.0-openmpi
  openmpi            conda-forge/linux-64::openmpi-4.1.0-hbfc84c5_2
  zlib               conda-forge/linux-64::zlib-1.2.11-h516909a_1010