miniamr: initial version for OmpSs-2

This commit is contained in:
Rodrigo Arias 2020-12-03 16:57:13 +01:00
parent f65e4d01c3
commit 266fffdb5f
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,46 @@
{
stdenv
, tampi
, clangOmpss2
, mpi
, nanos6
, mcxx
, variant
}:
with stdenv.lib;
assert (assertOneOf "variant" variant [ "openmp" "openmp-tasks" "ompss-2" ]);
let
cc=mcxx;
in
stdenv.mkDerivation rec {
name = "miniamr";
src = builtins.fetchGit {
url = "ssh://git@bscpm02.bsc.es/ksala/miniamr.git";
ref = "master";
};
postUnpack = ''
sourceRoot=$sourceRoot/${variant}
'';
buildInputs = [ tampi clangOmpss2 mpi nanos6 mcxx ];
makeFlags = [
"CC=${cc.CC}"
"CXX=${cc.CXX}"
];
enableParallelBuilding = true;
installPhase = ''
mkdir -p $out/bin
cp miniAMR.x $out/bin/
'';
programPath = "/bin/miniAMR.x";
}

View File

@ -303,6 +303,11 @@ let
}; };
heat = callPackage ./garlic/apps/heat/default.nix { }; heat = callPackage ./garlic/apps/heat/default.nix { };
miniamr = callPackage ./garlic/apps/miniamr/default.nix {
variant = "ompss-2";
};
# heat = callPackage ./garlic/apps/heat/default.nix { # heat = callPackage ./garlic/apps/heat/default.nix {
# # FIXME: The heat program must be able to compile with gcc9 and newer # # FIXME: The heat program must be able to compile with gcc9 and newer
# stdenv = self.gcc7Stdenv; # stdenv = self.gcc7Stdenv;