Add SPEC CPU mini with a subset of benchmarks
This commit is contained in:
parent
a9350da4b8
commit
d7ef22936a
@ -13,6 +13,7 @@ final: prev:
|
|||||||
|
|
||||||
spec-cpu-tools = final.callPackage ./pkgs/spec-cpu/tools.nix { };
|
spec-cpu-tools = final.callPackage ./pkgs/spec-cpu/tools.nix { };
|
||||||
spec-cpu = final.callPackage ./pkgs/spec-cpu/default.nix { };
|
spec-cpu = final.callPackage ./pkgs/spec-cpu/default.nix { };
|
||||||
|
spec-cpu-mini = final.callPackage ./pkgs/spec-cpu/mini.nix { };
|
||||||
spec-cpu-clang = final.callPackage ./pkgs/spec-cpu/default.nix { stdenv = final.stdenvClangEpi; };
|
spec-cpu-clang = final.callPackage ./pkgs/spec-cpu/default.nix { stdenv = final.stdenvClangEpi; };
|
||||||
|
|
||||||
blis = ((prev.blis.override {
|
blis = ((prev.blis.override {
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
, autoPatchelfHook
|
, autoPatchelfHook
|
||||||
, libxcrypt-legacy
|
, libxcrypt-legacy
|
||||||
, lib
|
, lib
|
||||||
|
, benchSize ? "test"
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -27,6 +28,7 @@ stdenv.mkDerivation rec {
|
|||||||
runcpu \
|
runcpu \
|
||||||
--verbose=80 \
|
--verbose=80 \
|
||||||
--tune=base \
|
--tune=base \
|
||||||
|
--size=${benchSize} \
|
||||||
--output_root=$PWD/out \
|
--output_root=$PWD/out \
|
||||||
--config=$PWD/config.cfg \
|
--config=$PWD/config.cfg \
|
||||||
--define build_ncpus=$NIX_BUILD_CORES \
|
--define build_ncpus=$NIX_BUILD_CORES \
|
||||||
|
39
pkgs/spec-cpu/mini.nix
Normal file
39
pkgs/spec-cpu/mini.nix
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
stdenv
|
||||||
|
, spec-cpu
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "spec-cpu-mini";
|
||||||
|
version = spec-cpu.version;
|
||||||
|
src = null;
|
||||||
|
unpackPhase = "true";
|
||||||
|
|
||||||
|
# Select only a subset of the benchmarks:
|
||||||
|
# https://www.spec.org/cpu2017/Docs/#benchdocs
|
||||||
|
benchList = [
|
||||||
|
# -- SPECspeed 2017 Integer --
|
||||||
|
"600.perlbench_s"
|
||||||
|
"602.gcc_s"
|
||||||
|
"605.mcf_s"
|
||||||
|
"620.omnetpp_s"
|
||||||
|
#"623.xalancbmk_s" # Big
|
||||||
|
#"625.x264_s" # Big
|
||||||
|
"631.deepsjeng_s"
|
||||||
|
"641.leela_s"
|
||||||
|
"648.exchange2_s"
|
||||||
|
"657.xz_s"
|
||||||
|
];
|
||||||
|
|
||||||
|
dontConfigure = true;
|
||||||
|
dontBuild = true;
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/benchspec/CPU
|
||||||
|
for bench in $benchList; do
|
||||||
|
cp -a ${spec-cpu}/benchspec/CPU/$bench $out/benchspec/CPU/
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
enableParallelBuilding = false;
|
||||||
|
hardeningDisable = [ "all" ];
|
||||||
|
dontStrip = true;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user