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

View File

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