miniamr: initial version for OmpSs-2
This commit is contained in:
parent
f65e4d01c3
commit
266fffdb5f
46
garlic/apps/miniamr/default.nix
Normal file
46
garlic/apps/miniamr/default.nix
Normal 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";
|
||||
|
||||
}
|
@ -303,6 +303,11 @@ let
|
||||
};
|
||||
|
||||
heat = callPackage ./garlic/apps/heat/default.nix { };
|
||||
|
||||
miniamr = callPackage ./garlic/apps/miniamr/default.nix {
|
||||
variant = "ompss-2";
|
||||
};
|
||||
|
||||
# heat = callPackage ./garlic/apps/heat/default.nix {
|
||||
# # FIXME: The heat program must be able to compile with gcc9 and newer
|
||||
# stdenv = self.gcc7Stdenv;
|
||||
|
Loading…
Reference in New Issue
Block a user