heat: update new app version

The blocksize is now specified at runtime
This commit is contained in:
Rodrigo Arias 2021-03-05 16:16:06 +01:00
parent c4e49ea249
commit 7e10a43b40

View File

@ -2,43 +2,29 @@
stdenv
, mpi
, tampi
, clangOmpss2
, bsx ? 1024
, bsy ? 1024
, mcxx
, gitBranch ? "master"
}:
stdenv.mkDerivation rec {
name = "heat";
extension = if (bsx == bsy)
then "${toString bsx}bs.exe"
else "${toString bsx}x${toString bsy}bs.exe";
variant = "heat_ompss";
target = "${variant}.${extension}";
makeFlags = [
"BSX=${toString bsx}"
"BSY=${toString bsy}"
target
];
src = ~/heat;
#src = builtins.fetchGit {
# url = "ssh://git@bscpm03.bsc.es/garlic/apps/heat.git";
# ref = "garlic";
#};
src = builtins.fetchGit {
url = "ssh://git@bscpm03.bsc.es/garlic/apps/heat.git";
ref = gitBranch;
};
buildInputs = [
mpi
clangOmpss2
mcxx
tampi
];
programPath = "/bin/${target}";
programPath = "/bin/${name}";
installPhase = ''
mkdir -p $out/bin
cp ${target} $out/bin/
cp ${name} $out/bin/
mkdir -p $out/etc
cp heat.conf $out/etc/