bscpkgs/garlic/fig/index.nix

82 lines
2.2 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 19:41:31 +08: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 19:41:31 +08:00
linkTree = name: tree: self.linkFarm name (
self.lib.mapAttrsToList (
name: value: { name=name; path=value; }
) tree);
in
{
nbody = with exp.nbody; {
baseline = stdPlot ./nbody/baseline.R [ baseline ];
small = stdPlot ./nbody/baseline.R [ small ];
jemalloc = stdPlot ./nbody/jemalloc.R [ baseline jemalloc ];
ctf = stdPlot ./nbody/baseline.R [ ctf ];
2021-02-03 20:03:28 +08:00
scaling = stdPlot ./nbody/baseline.R [ scaling ];
};
hpcg = with exp.hpcg; {
oss = stdPlot ./hpcg/oss.R [ oss ];
};
saiph = with exp.saiph; {
granularity = stdPlot ./saiph/granularity.R [ granularity ];
};
heat = with exp.heat; {
2021-03-06 01:28:32 +08:00
granul = stdPlot ./heat/granul.R [ granul ];
cache = customPlot ./heat/cache.R (ds.perf.stat cache.result);
ctf = customPlot ./heat/mode.R (ds.ctf.mode ctf.result);
};
2020-12-18 19:26:40 +08:00
creams = with exp.creams; {
ss = stdPlot ./creams/ss.R [ ss.hybrid ss.pure ];
2020-12-18 19:26:40 +08:00
};
2021-02-24 00:52:48 +08:00
osu = with exp.osu; {
2021-03-03 19:39:23 +08: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 19:39:23 +08:00
bw = customPlot ./osu/bw.R (ds.osu.bw bw.result);
bwShm = customPlot ./osu/bw.R (ds.osu.bw bwShm.result);
2021-03-03 19:40:15 +08:00
impi = customPlot ./osu/impi.R (ds.osu.bw impi.result);
2021-02-24 00:52:48 +08:00
};
2021-03-03 19:41:31 +08:00
# The figures used in the article contained in a directory per figure
article = with fig; linkTree "article-fig" {
"osu/latency" = osu.latency;
"osu/latencyMt" = osu.latencyMt;
"osu/bw" = osu.bw;
"osu/bwShm" = osu.bwShm;
2021-03-10 01:21:22 +08:00
"heat/cache" = heat.cache;
2021-03-03 19:41:31 +08:00
};
2021-03-13 02:33:40 +08:00
examples = with exp.examples; {
granularity = stdPlot ./examples/granularity.R [ granularity ];
};
}