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";