3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/cupy/default.nix
2020-06-11 09:59:55 +02:00

50 lines
975 B
Nix

{ stdenv, buildPythonPackage
, fetchPypi, isPy3k, linuxPackages
, fastrlock, numpy, six, wheel, pytest, mock, setuptools
, cudatoolkit, cudnn, nccl
}:
buildPythonPackage rec {
pname = "cupy";
version = "7.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "243254a1607e19ca55191c4cca4c0f2b143e1d5914e2a1bc9e3f715e7ccafc41";
};
checkInputs = [
pytest
mock
];
preConfigure = ''
export CUDA_PATH=${cudatoolkit}
'';
propagatedBuildInputs = [
cudatoolkit
cudnn
linuxPackages.nvidia_x11
nccl
fastrlock
numpy
six
setuptools
wheel
];
# In python3, test was failed...
doCheck = !isPy3k;
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "A NumPy-compatible matrix library accelerated by CUDA";
homepage = "https://cupy.chainer.org/";
license = licenses.mit;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ hyphon81 ];
};
}