nixpkgs/pkgs/development/libraries/ucx/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, autoreconfHook, doxygen
2021-11-29 10:31:34 +00:00
, numactl, rdma-core, libbfd, libiberty, perl, zlib, symlinkJoin
, enableCuda ? false
, cudatoolkit
2020-02-20 12:59:21 +00:00
}:
2021-11-29 10:31:34 +00:00
let
# Needed for configure to find all libraries
cudatoolkit' = symlinkJoin {
inherit (cudatoolkit) name meta;
paths = [ cudatoolkit cudatoolkit.lib ];
};
in stdenv.mkDerivation rec {
2021-05-05 20:17:00 +00:00
pname = "ucx";
2022-01-19 10:16:49 +00:00
version = "1.12.0";
2020-02-20 12:59:21 +00:00
src = fetchFromGitHub {
owner = "openucx";
repo = "ucx";
rev = "v${version}";
2022-01-19 10:16:49 +00:00
sha256 = "0jwza9ivfnhkfwg4c58pxalkga5scz803k631xw4hcliy62gk53w";
2020-02-20 12:59:21 +00:00
};
nativeBuildInputs = [ autoreconfHook doxygen ];
2021-11-29 10:31:34 +00:00
buildInputs = [
libbfd
libiberty
numactl
perl
rdma-core
zlib
] ++ lib.optional enableCuda cudatoolkit;
2020-02-20 12:59:21 +00:00
configureFlags = [
"--with-rdmacm=${rdma-core}"
"--with-dc"
"--with-rc"
"--with-dm"
"--with-verbs=${rdma-core}"
2021-11-29 10:31:34 +00:00
] ++ lib.optional enableCuda "--with-cuda=${cudatoolkit'}";
2020-02-20 12:59:21 +00:00
enableParallelBuilding = true;
meta = with lib; {
2020-02-20 12:59:21 +00:00
description = "Unified Communication X library";
homepage = "http://www.openucx.org";
2020-02-20 12:59:21 +00:00
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = [ maintainers.markuskowa ];
};
}