From c50158e3beee77ca315dda84949a221c0dbede1c Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Mon, 20 Jul 2020 12:58:54 +0200 Subject: [PATCH] Add fwi app --- bsc/apps/fwi/default.nix | 33 +++++++++++++++++++++++++++++++++ default.nix | 3 +++ 2 files changed, 36 insertions(+) create mode 100644 bsc/apps/fwi/default.nix diff --git a/bsc/apps/fwi/default.nix b/bsc/apps/fwi/default.nix new file mode 100644 index 0000000..3909bf3 --- /dev/null +++ b/bsc/apps/fwi/default.nix @@ -0,0 +1,33 @@ +{ + stdenv +, nanos6 +, mpi +, tampi +, mcxx +, icc +}: + +stdenv.mkDerivation rec { + name = "nbody"; + + src = builtins.fetchGit { + url = "https://gitlab.com/srodrb/BSC-FWI.git"; + ref = "ompss"; + }; + + postUnpack = "sourceRoot=$sourceRoot/3_ompss"; + + buildInputs = [ + nanos6 + mpi + icc + tampi + mcxx + ]; + + installPhase = '' + mkdir -p $out/bin + cp fwi.* $out/bin + cp ModelGenerator $out/bin + ''; +} diff --git a/default.nix b/default.nix index 9675c4a..1aaa754 100644 --- a/default.nix +++ b/default.nix @@ -157,6 +157,9 @@ let hpccg = callPackage ./bsc/apps/hpccg/default.nix { }; + fwi = callPackage ./bsc/apps/fwi/default.nix { + }; + # Patched nix for deep cluster inherit (callPackage ./bsc/nix/default.nix { storeDir = "/nix/store";