# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{10..11} ) ROCM_VERSION=5.1.3 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools inherit distutils-r1 prefix pypi rocm cuda DESCRIPTION="CuPy: A NumPy-compatible array library accelerated by CUDA" SRC_URI="$(pypi_sdist_url "${PN^}" "${PV}")" HOMEPAGE="https://cupy.dev/" IUSE="rocm +cuda cudnn" REQUIRED_USE=" ^^ ( cuda rocm ) cudnn? ( cuda ) rocm? ( ${ROCM_REQUIRED_USE} ) " LICENSE="MIT" SLOT="0" KEYWORDS="" DEPEND=" >=dev-python/cython-0.29.22[${PYTHON_USEDEP}] >=dev-python/numpy-1.18.0[${PYTHON_USEDEP}] cuda? ( dev-util/nvidia-cuda-toolkit[profiler] ) cudnn? ( dev-libs/cudnn ) rocm? ( >=dev-util/hip-${ROCM_VERSION} >=dev-util/roctracer-${ROCM_VERSION} >=sci-libs/hipBLAS-${ROCM_VERSION}[${ROCM_USEDEP}] >=sci-libs/hipCUB-${ROCM_VERSION}[${ROCM_USEDEP}] >=sci-libs/hipFFT-${ROCM_VERSION}[${ROCM_USEDEP}] >=sci-libs/hipRAND-${ROCM_VERSION}[${ROCM_USEDEP}] >=sci-libs/rocThrust-${ROCM_VERSION}[${ROCM_USEDEP}] >=sci-libs/hipSPARSE-${ROCM_VERSION}[${ROCM_USEDEP}] )