saiph: add cacheline compilation parameter

This commit is contained in:
Sandra 2021-02-19 11:10:44 +01:00 committed by Rodrigo Arias Mallo
parent 02a62c18ac
commit 37e11c749f
2 changed files with 8 additions and 5 deletions

View File

@ -13,7 +13,7 @@
, nby ? null
, nbz ? null
, vectFlags ? null
#, breakpointHook
, cachelineBytes ? 64
}:
with stdenv.lib;
@ -59,6 +59,7 @@ stdenv.mkDerivation rec {
"-f" "Makefile.${cc.CC}"
"apps"
"APP=Heat3D_vect"
"ROW_ALIGNMENT=${toString cachelineBytes}"
] ++ optional (nbx != null) "NB_X=${toString nbx}"
++ optional (nby != null) "NB_Y=${toString nby}"
++ optional (nbz != null) "NB_Z=${toString nbz}"

View File

@ -25,16 +25,18 @@ let
nby = c.nb;
nbz = c.nb;
mpi = impi;
gitBranch = "garlic/tampi+isend+oss+task+simd";
gitBranch = "garlic/tampi+isend+omp+task+simd";
# Repeat the execution of each unit 50 times
loops = 10;
# Repeat the execution of each unit 30 times
loops = 30;
# Resources
cachelineBytes = hw.cachelineBytes;
qos = "debug";
time = "02:00:00";
ntasksPerNode = 1;
nodes = 1;
ntasksPerNode = hw.socketsPerNode;
cpusPerTask = hw.cpusPerSocket;
jobName = "${unitName}-${gitBranch}";
};
@ -57,7 +59,7 @@ let
customPkgs = stdexp.replaceMpi conf.mpi;
in
customPkgs.apps.saiph.override {
inherit nbx nby nbz mpi gitBranch;
inherit nbx nby nbz mpi gitBranch cachelineBytes;
};
pipeline = stdexp.stdPipeline ++ [ exec program ];