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,11 +76,22 @@ let
program = stageProgram stage; program = stageProgram stage;
}; };
extrae = {stage, conf, ...}: w.extrae { extrae = {stage, conf, ...}:
program = stageProgram stage; let
traceLib = "mpi"; # mpi -> libtracempi.so # We set the mpi implementation to the one specified in the conf, so all
configFile = ./extrae.xml; # 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;
extrae = extrae;
traceLib = "nanosmpi"; # mpi -> libtracempi.so
configFile = ./extrae.xml;
};
bscOverlay = import ../../../overlay.nix; bscOverlay = import ../../../overlay.nix;

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" ''