Merge pull request #240015 from jmillerpdt/init-nccl-tests

nccl-tests: init at 2.13.6
This commit is contained in:
Connor Baker 2023-08-21 10:33:19 -04:00 committed by GitHub
commit 23144ffa59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 65 additions and 0 deletions

View File

@ -8135,6 +8135,12 @@
githubId = 2308444;
name = "Joshua Gilman";
};
jmillerpdt = {
email = "jcmiller@pdtpartners.com";
github = "jmillerpdt";
githubId = 54179289;
name = "Jason Miller";
};
jnsgruk = {
email = "jon@sgrs.uk";
github = "jnsgruk";

View File

@ -0,0 +1,57 @@
{ config
, cudaPackages
, fetchFromGitHub
, lib
, mpiSupport ? false
, mpi
, stdenv
, which
}:
cudaPackages.backendStdenv.mkDerivation (finalAttrs: {
pname = "nccl-tests";
version = "2.13.6";
src = fetchFromGitHub {
owner = "NVIDIA";
repo = finalAttrs.pname;
rev = "v${finalAttrs.version}";
hash = "sha256-3gSBQ0g6mnQ/MFXGflE+BqqrIUoiBgp8+fWRQOvLVkw=";
};
strictDeps = true;
nativeBuildInputs = [
cudaPackages.cuda_nvcc
which
];
buildInputs = [
cudaPackages.cuda_cudart
cudaPackages.nccl
] ++ lib.optional mpiSupport mpi;
makeFlags = [
"CUDA_HOME=${cudaPackages.cuda_nvcc}"
"NCCL_HOME=${cudaPackages.nccl}"
] ++ lib.optionals mpiSupport [
"MPI=1"
];
enableParallelBuilding = true;
installPhase = ''
mkdir -p $out/bin
cp -r build/* $out/bin/
'';
meta = with lib; {
description = "Tests to check both the performance and the correctness of NVIDIA NCCL operations";
homepage = "https://github.com/NVIDIA/nccl-tests";
platforms = [ "x86_64-linux" ];
license = licenses.bsd3;
broken = !config.cudaSupport || (mpiSupport && mpi == null);
maintainers = with maintainers; [ jmillerpdt ];
};
})

View File

@ -47,6 +47,8 @@ let
nccl = final.callPackage ../development/libraries/science/math/nccl { };
nccl-tests = final.callPackage ../development/libraries/science/math/nccl/tests.nix { };
autoAddOpenGLRunpathHook = final.callPackage ( { makeSetupHook, addOpenGLRunpath }:
makeSetupHook {
name = "auto-add-opengl-runpath-hook";