From 577a7c3190ee2a0146b25b2235275c4d1c914c40 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Fri, 10 Jul 2020 16:49:39 +0200 Subject: [PATCH] Add CREAMS app --- bsc/apps/creams/default.nix | 41 +++++++++++++++++++++++++++++++++++++ default.nix | 9 ++++++++ 2 files changed, 50 insertions(+) create mode 100644 bsc/apps/creams/default.nix diff --git a/bsc/apps/creams/default.nix b/bsc/apps/creams/default.nix new file mode 100644 index 0000000..1819579 --- /dev/null +++ b/bsc/apps/creams/default.nix @@ -0,0 +1,41 @@ +{ + stdenv +, nanos6 +, mpi +, tampi +, mcxx +, icc +, strace +}: + +stdenv.mkDerivation rec { + name = "creams"; + + src = builtins.fetchGit { + url = "ssh://git@bscpm02.bsc.es/pmartin1/creams-simplified.git"; + ref = "MPI+OmpSs-2+TAMPI"; + }; + + buildInputs = [ + nanos6 + mpi + icc + tampi + mcxx + strace + ]; + + hardeningDisable = [ "all" ]; + + preBuild = '' + #export NIX_DEBUG=6 + export TAMPI_HOME=${tampi} + . etc/bashrc + ''; + + installPhase = '' + mkdir -p $out/bin + cp -a build/* $out/bin + ''; + +} diff --git a/default.nix b/default.nix index 3574ec0..7a40ddf 100644 --- a/default.nix +++ b/default.nix @@ -136,6 +136,15 @@ let boost = pkgs.boost; }; + creams = callPackage ./bsc/apps/creams/default.nix { + stdenv = pkgs.gcc9Stdenv; + mpi = intel-mpi; + tampi = tampi.override { + mpi = intel-mpi; + }; + nanos6 = nanos6-git; + }; + # Patched nix for deep cluster inherit (callPackage ./bsc/nix/default.nix { storeDir = "/nix/store";