bscpkgs/garlic/fig/index.nix

97 lines
2.8 KiB
Nix
Raw Normal View History

{
super
, self
, bsc
, garlic
, callPackage
}:
let
rPlot = garlic.pp.rPlot;
exp = garlic.exp;
pp = garlic.pp;
ds = garlic.ds;
2021-03-03 12:41:31 +01:00
fig = garlic.fig;
stdPlot = rScript: expList: rPlot {
script = rScript;
dataset = pp.mergeDatasets (map (e: ds.std.timetable e.result) expList);
};
customPlot = rScript: dataset: rPlot {
script = rScript;
dataset = dataset;
};
2021-03-03 12:41:31 +01:00
linkTree = name: tree: self.linkFarm name (
self.lib.mapAttrsToList (
name: value: { name=name; path=value; }
) tree);
in
{
nbody = with exp.nbody; {
2021-03-24 10:12:05 +01:00
granularity = stdPlot ./nbody/granularity.R [ granularity ];
2021-04-20 17:16:17 +02:00
ss = stdPlot ./nbody/ss.R [ ss ];
numa = stdPlot ./nbody/numa.R [ numa ];
};
hpcg = with exp.hpcg; {
ss = stdPlot ./hpcg/ss.R [ ss ];
ws = stdPlot ./hpcg/ws.R [ ws ];
size = stdPlot ./hpcg/size.R [ size ];
granularity = stdPlot ./hpcg/granularity.R [ granularity ];
};
saiph = with exp.saiph; {
granularity = stdPlot ./saiph/granularity.R [ granularity ];
ss = stdPlot ./saiph/ss.R [ ss ];
};
heat = with exp.heat; {
granularity = stdPlot ./heat/granularity.R [ granularity ];
cache = customPlot ./heat/cache.R (ds.perf.stat cache.result);
ctf = customPlot ./heat/mode.R (ds.ctf.mode ctf.result);
};
2020-12-18 12:26:40 +01:00
creams = with exp.creams; {
ss = stdPlot ./creams/ss.R [ ss ];
granularity = stdPlot ./creams/granularity.R [ granularity ];
2021-05-03 11:11:50 +02:00
size = stdPlot ./creams/size.R [ size ];
# Extended version (we could use another R script for those plots
big.ss = stdPlot ./creams/ss.R [ big.ss ];
big.granularity = stdPlot ./creams/granularity.R [ big.granularity ];
2020-12-18 12:26:40 +01:00
};
2021-02-23 17:52:48 +01:00
2021-03-04 18:41:45 +01:00
fwi = with exp.fwi; {
2021-04-14 17:18:46 +02:00
granularity = stdPlot ./fwi/granularity.R [ granularity ];
reuse = stdPlot ./fwi/granularity.R [ reuse ];
ss = stdPlot ./fwi/ss.R [ ss ];
io = stdPlot ./fwi/io.R [ io ];
2021-03-04 18:41:45 +01:00
};
2021-02-23 17:52:48 +01:00
osu = with exp.osu; {
2021-03-03 12:39:23 +01:00
latency = customPlot ./osu/latency.R (ds.osu.latency latency.result);
latencyShm = customPlot ./osu/latency.R (ds.osu.latency latencyShm.result);
latencyMt = customPlot ./osu/latency.R (ds.osu.latency latencyMt.result);
latencyMtShm = customPlot ./osu/latency.R (ds.osu.latency latencyMtShm.result);
2021-03-03 12:39:23 +01:00
bw = customPlot ./osu/bw.R (ds.osu.bw bw.result);
bwShm = customPlot ./osu/bw.R (ds.osu.bw bwShm.result);
2021-03-03 12:40:15 +01:00
impi = customPlot ./osu/impi.R (ds.osu.bw impi.result);
2021-04-07 12:59:05 +02:00
mtu = customPlot ./osu/mtu.R (ds.osu.bw mtu.result);
eager = customPlot ./osu/eager.R (ds.osu.bw eager.result);
2021-02-23 17:52:48 +01:00
};
2021-03-03 12:41:31 +01:00
# The figures used in the article contained in a directory per figure
article = with fig; linkTree "article-fig" {
"osu/latency" = osu.latency;
"osu/bw" = osu.bw;
2021-04-09 16:03:01 +02:00
"osu/mtu" = osu.mtu;
2021-03-03 12:41:31 +01:00
};
2021-03-12 19:33:40 +01:00
examples = with exp.examples; {
granularity = stdPlot ./examples/granularity.R [ granularity ];
};
}