Skip to content

Commit

Permalink
config: add cpt-extra-tags
Browse files Browse the repository at this point in the history
  • Loading branch information
xieby1 committed Dec 17, 2024
1 parent ed7614c commit f78d511
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ let
passthru = pkgs.lib.optionalAttrs (value?passthru) value.passthru;
} else value
) buildResult;
cpt-extra-tags = [
cpt-simulator
"1core"
];
in raw.overrideScope (r-self: r-super: {
riscv64-scope = r-super.riscv64-scope.overrideScope (self: super: {
riscv64-stdenv = super.riscv64-pkgs."${cc}Stdenv";
Expand Down Expand Up @@ -149,29 +153,27 @@ in raw.overrideScope (r-self: r-super: {
})) (pkgs.lib.filterAttrs
(testcase: v: spec2006-testcase-filter testcase)
r-super.spec2006);
in overrided // (wrap-l2 (builtins.concatStringsSep "_" [
in overrided // (wrap-l2 (builtins.concatStringsSep "_" ([
"spec2006"
spec2006-size
(pkgs.lib.removePrefix "${r-self.riscv64-scope.riscv64-stdenv.targetPlatform.config}-" r-self.riscv64-scope.riscv64-stdenv.cc.cc.name)
spec2006-optimize
spec2006-march
cpt-simulator
"1core"
] ++ cpt-extra-tags ++ [
spec2006-extra-tag
]) overrided);
])) overrided);

openblas = let
unwrapped = r-super.openblas.overrideScope ( self: super: {
benchmark = super.benchmark.override {
TARGET = openblas-target;
};
});
in wrap-l1 (builtins.concatStringsSep "_" [
in wrap-l1 (builtins.concatStringsSep "_" ([
"openblas"
(pkgs.lib.removePrefix "${r-self.riscv64-scope.riscv64-stdenv.targetPlatform.config}-" r-self.riscv64-scope.riscv64-stdenv.cc.cc.name)
openblas-target
cpt-simulator
"1core"
] ++ cpt-extra-tags ++ [
openblas-extra-tag
]) unwrapped;
])) unwrapped;
})

0 comments on commit f78d511

Please sign in to comment.