summary refs log tree commit diff
path: root/pkgs/development/libraries/science/math/nccl/default.nix
blob: c4deccff5b7ef8ad80d0db93186398dfbebd3bf8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ stdenv, fetchFromGitHub
, gcc5, eject, cudatoolkit
}:

stdenv.mkDerivation rec {
  name = "cudatoolkit-${cudatoolkit.majorVersion}-nccl-${version}";
  version = "1.3.4-1";

  src = fetchFromGitHub {
    owner = "NVIDIA";
    repo = "nccl";
    rev = "v${version}";
    sha256 = "0fvnrfn572lc6i2a3xyhbifm53ivcrr46z6cqr3b0bwb1iq79m7q";
  };

  nativeBuildInputs = [
    gcc5
    eject
  ];

  propagatedBuildInputs = [
    cudatoolkit
  ];

  makeFlags = [
    "PREFIX=$(out)"
    "CUDA_HOME=${cudatoolkit}"
    "CUDA_LIB=${cudatoolkit.lib}/lib"
  ];

  meta = with stdenv.lib; {
    description = ''
      NVIDIA Collective Communications Library.
      Multi-GPU and multi-node collective communication primitives.
    '';
    homepage = https://developer.nvidia.com/nccl;
    license = licenses.bsd3;
    platforms = [ "x86_64-linux" ];
    maintainers = with maintainers; [ hyphon81 ];
  };
}