saiph: Extrae with the correct MPI

This commit is contained in:
Rodrigo Arias 2020-09-22 14:26:01 +02:00
parent ad4df5e05d
commit cd37d513e8
2 changed files with 20 additions and 9 deletions

View File

@ -12,7 +12,7 @@ with stdenv.lib;
let let
# Set variable configuration for the experiment # Set variable configuration for the experiment
varConfig = { varConfig = {
numComm = [ 1 2 3 4 ]; numComm = [ 1 ];
}; };
# Common configuration # Common configuration
@ -27,8 +27,8 @@ let
# Stage configuration # Stage configuration
enableSbatch = true; enableSbatch = true;
enableControl = true; enableControl = false;
enableExtrae = false; enableExtrae = true;
enablePerf = false; enablePerf = false;
# MN4 path # MN4 path
@ -76,9 +76,20 @@ let
program = stageProgram stage; program = stageProgram stage;
}; };
extrae = {stage, conf, ...}: w.extrae { extrae = {stage, conf, ...}:
let
# We set the mpi implementation to the one specified in the conf, so all
# packages in bsc will use that one.
customPkgs = genPkgs (self: super: {
bsc = super.bsc // { mpi = conf.mpi; };
});
extrae = customPkgs.bsc.extrae;
in
w.extrae {
program = stageProgram stage; program = stageProgram stage;
traceLib = "mpi"; # mpi -> libtracempi.so extrae = extrae;
traceLib = "nanosmpi"; # mpi -> libtracempi.so
configFile = ./extrae.xml; configFile = ./extrae.xml;
}; };

View File

@ -1,7 +1,6 @@
{ {
stdenv stdenv
, bash , bash
, extrae
#, writeShellScriptBin #, writeShellScriptBin
}: }:
@ -9,6 +8,7 @@
program program
, configFile , configFile
, traceLib , traceLib
, extrae
}: }:
#writeShellScriptBin "extraeWrapper" '' #writeShellScriptBin "extraeWrapper" ''