Prune spec-cpu-mini
This commit is contained in:
parent
bc3e8513db
commit
c2fcd40bc1
@ -5140,3 +5140,12 @@ To trace which accesses are done to the PLIC, I can use the mmiotracer, which
|
|||||||
will hopefully record how we configure the PLIC and lead to a reproducer.
|
will hopefully record how we configure the PLIC and lead to a reproducer.
|
||||||
|
|
||||||
CONFIG_MMIOTRACE=y
|
CONFIG_MMIOTRACE=y
|
||||||
|
|
||||||
|
## 2024-10-07
|
||||||
|
|
||||||
|
Let's move on to the SPEC CPU benchmarks. I compiled them again with the current
|
||||||
|
nixpkgs, but they are too large. I made a "mini" version with only the "speed"
|
||||||
|
and "integer" variants and removing a couple of large benchmarks.
|
||||||
|
|
||||||
|
Still, the closure is gigantic, as they are collecting the environment during
|
||||||
|
the build phase and that makes the result depend on the build packages.
|
||||||
|
@ -26,12 +26,25 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
dontBuild = true;
|
buildPhase = ''
|
||||||
installPhase = ''
|
pwd
|
||||||
mkdir -p $out/benchspec/CPU
|
mkdir -p benchspec/CPU
|
||||||
for bench in $benchList; do
|
for bench in $benchList; do
|
||||||
cp -a ${spec-cpu}/benchspec/CPU/$bench $out/benchspec/CPU/
|
cp -r ${spec-cpu}/benchspec/CPU/$bench benchspec/CPU/
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Make writable
|
||||||
|
chmod -R +w benchspec
|
||||||
|
|
||||||
|
# Remove environment
|
||||||
|
find benchspec -name '*.cmd' | xargs sed -i '/^-E/d'
|
||||||
|
# Remove compare script as it refers to spec-cpu-tools
|
||||||
|
find benchspec -name 'compare.cmd' -delete
|
||||||
|
'';
|
||||||
|
installPhase = ''
|
||||||
|
pwd
|
||||||
|
mkdir -p $out
|
||||||
|
cp -r benchspec/ $out
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
echo -e "#!$SHELL\necho $out" > $out/bin/spec-cpu-mini
|
echo -e "#!$SHELL\necho $out" > $out/bin/spec-cpu-mini
|
||||||
chmod +x $out/bin/spec-cpu-mini
|
chmod +x $out/bin/spec-cpu-mini
|
||||||
|
Loading…
Reference in New Issue
Block a user