Package Details: python-mpi4py-intel 3.1.4-1

Git Clone URL: https://aur.archlinux.org/python-mpi4py-intel.git (read-only, click to copy)
Package Base: python-mpi4py-intel
Description: Python bindings for the Message Passing Interface compiled with intel mpi
Upstream URL: https://github.com/mpi4py/mpi4py
Licenses: custom:BSD-2-clause
Conflicts: python-mpi4py
Provides: python-mpi4py
Submitter: wjhandley
Maintainer: carlosal1015
Last Packager: carlosal1015
Votes: 0
Popularity: 0.000000
First Submitted: 2018-02-16 12:19 (UTC)
Last Updated: 2023-03-02 17:21 (UTC)

Required by (49)

Sources (1)

Latest Comments

carlosal1015 commented on 2023-07-08 17:05 (UTC) (edited on 2023-07-08 17:16 (UTC) by carlosal1015)

icc is deprecated, that's the reason why we can not build

I guess, we can not run mpi programs with intel for now. Le'ts wait if we can use icl in the future

carlosal1015 commented on 2023-07-07 16:06 (UTC)

Hi @MarsSeed, I noticed it on June 19 but couldn't fix it, I think there was something missing to update in the official package set, anyway I'll take a look if it changed anything, if you have any suggestions please mail me. This is my advance:

# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
# Contributor: Will Handley <wh260@cam.ac.uk> (aur.archlinux.org/account/wjhandley)
# Based on python-mpi4py, maintained by Bruno Pagani <archange@archlinux.org> and et.al.
_base=mpi4py
pkgname=python-${_base}-intel
pkgver=3.1.4
pkgrel=2
pkgdesc="Python bindings for the Message Passing Interface compiled with intel mpi"
arch=(x86_64)
url="https://github.com/${_base}/${_base}"
license=('custom:BSD-2-clause')
depends=(python intel-oneapi-basekit)
makedepends=(python-setuptools cython)
provides=(python-${_base})
conflicts=(python-${_base})
options=(!emptydirs)
source=(${_base}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz)
sha512sums=('074ac690c7606e104b6f7a82c03eb99906f6efe2556c0ecba14a8949a3f9b263d7a75b7f714c37c83ac971fbee3e60bd0bbb3110b37ee9bd9a6fdc5041d78095')

build() {
  cd ${_base}-${pkgver}
  source /opt/intel/oneapi/setvars.sh
  source /opt/intel/oneapi/compiler/2023.1.0/env/vars.sh
  source /opt/intel/oneapi/mpi/2021.9.0/env/vars.sh
  CC=icx MPICC=mpiicc LDFLAGS="-shared-intel" python setup.py build
}

check() {
  if [ -z "$(ldconfig -p | grep libcuda.so.1)" ]; then
    # We don’t have CUDA by default
    export OMPI_MCA_opal_warn_on_missing_libcuda=0
  fi

  # This is required starting with OpenMPI 3.0 when trying to run more
  # processes than the number of available cores
  export OMPI_MCA_rmaps_base_oversubscribe=yes

  cd ${_base}-${pkgver}
  local _pyversion=$(python -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")
  PYTHONPATH="${PWD}"/build/lib.linux-${CARCH}-cpython-${_pyversion/./} python setup.py test
}

package() {
  cd ${_base}-${pkgver}
  PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
  install -Dm 644 LICENSE.rst -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

MarsSeed commented on 2023-07-06 15:31 (UTC)

Missing dependency: intel-oneapi-compiler.