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