From 3298c5442ca10507bf5f662910d09e50ff642e8a Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Mon, 13 Jul 2020 14:09:20 +0200 Subject: [PATCH] Add lulesh app --- bsc/apps/lulesh/default.nix | 31 +++++++++++++++++++++++++++++++ default.nix | 4 ++++ 2 files changed, 35 insertions(+) create mode 100644 bsc/apps/lulesh/default.nix diff --git a/bsc/apps/lulesh/default.nix b/bsc/apps/lulesh/default.nix new file mode 100644 index 0000000..7d8d487 --- /dev/null +++ b/bsc/apps/lulesh/default.nix @@ -0,0 +1,31 @@ +{ + stdenv +, mpi +, mcxx +, icc +}: + +stdenv.mkDerivation rec { + name = "lulesh"; + + src = builtins.fetchGit { + url = "ssh://git@bscpm02.bsc.es/mmaronas/lulesh.git"; + ref = "master"; + }; + + dontConfigure = true; + + buildInputs = [ + mpi + icc + mcxx + ]; + + enableParallelBuilding = true; + + installPhase = '' + mkdir -p $out/bin + find . -name 'lulesh*' -type f -executable -exec cp \{\} $out/bin/ \; + ''; + +} diff --git a/default.nix b/default.nix index 7a40ddf..ad7c974 100644 --- a/default.nix +++ b/default.nix @@ -145,6 +145,10 @@ let nanos6 = nanos6-git; }; + lulesh = callPackage ./bsc/apps/lulesh/default.nix { + mpi = intel-mpi; + }; + # Patched nix for deep cluster inherit (callPackage ./bsc/nix/default.nix { storeDir = "/nix/store";