1 { stdenv, lib, fetchFromGitHub, libtool, automake, autoconf, ucx
4 , enableAvx ? stdenv.hostPlatform.avxSupport
5 , enableSse41 ? stdenv.hostPlatform.sse4_1Support
6 , enableSse42 ? stdenv.hostPlatform.sse4_2Support
9 stdenv.mkDerivation rec {
13 src = fetchFromGitHub {
17 sha256 = "sha256-5rf08SXy+vCfnz4zLJ0cMnxwso4WpZOt0jRRAUviVFU=";
20 enableParallelBuilding = true;
24 for comp in $(find src/components -name Makefile.am); do
25 substituteInPlace $comp \
26 --replace "/bin/bash" "${stdenv.shell}"
34 nativeBuildInputs = [ libtool automake autoconf ];
36 ++ lib.optional enableCuda cudatoolkit;
39 ++ lib.optional enableSse41 "--with-sse41"
40 ++ lib.optional enableSse42 "--with-sse42"
41 ++ lib.optional enableAvx "--with-avx"
42 ++ lib.optional enableCuda "--with-cuda=${cudatoolkit}";
45 description = "Collective communication operations API";
46 license = licenses.bsd3;
47 maintainers = [ maintainers.markuskowa ];
48 platforms = platforms.linux;