Skip to content

Commit

Permalink
benchmarks: spec2006: add enableVector
Browse files Browse the repository at this point in the history
  • Loading branch information
xieby1 committed Dec 10, 2024
1 parent cf08464 commit 64cbcb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion benchmarks/spec2006/build-all.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
, riscv64-libc-static
, src
, size
, enableVector
}:
let
customJemalloc = riscv64-pkgs.jemalloc.overrideAttrs (oldAttrs: {
Expand Down Expand Up @@ -82,7 +83,7 @@ in stdenv.mkDerivation {
export SPEC_LITE=$PWD
export ARCH=riscv64
export CROSS_COMPILE=riscv64-unknown-linux-gnu-
export OPTIMIZE="-O3 -flto -march=rv64gc_zba_zbb_zbc_zbs"
export OPTIMIZE="-O3 -flto -march=rv64gc${lib.optionalString enableVector "v"}_zba_zbb_zbc_zbs"
export SUBPROCESS_NUM=5
export CFLAGS="$CFLAGS -static -Wno-format-security -I${customJemalloc}/include "
Expand Down
3 changes: 2 additions & 1 deletion benchmarks/spec2006/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
, callPackage
, src
, size ? "ref" # "ref" or "test"
, enableVector ? false
}: let
testCases = [
"400.perlbench"
Expand Down Expand Up @@ -35,7 +36,7 @@
"482.sphinx3"
"483.xalancbmk"
];
build-all = callPackage ./build-all.nix { inherit src size; };
build-all = callPackage ./build-all.nix { inherit src size enableVector; };
in builtins.listToAttrs (
builtins.map (testcase: {
# change `.` to `_`, e.g. "403.gcc" to "403_gcc"
Expand Down

0 comments on commit 64cbcb8

Please sign in to comment.