Skip to content

Commit

Permalink
misc: rename gcpt-bin => gcpt
Browse files Browse the repository at this point in the history
  • Loading branch information
xieby1 committed Nov 14, 2024
1 parent b609a62 commit a78855b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
8 changes: 4 additions & 4 deletions builders/cptBuilder/1.profiling.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

, qemu
, nemu
, gcpt-bin
, gcpt
}:
let
name = "${lib.removeSuffix ".gcpt" gcpt-bin.name}.1_profiling";
name = "${lib.removeSuffix ".gcpt" gcpt.name}.1_profiling";
config = import ../../config.nix;

qemuCommand = [
"${qemu}/bin/qemu-system-riscv64"
"-bios ${gcpt-bin}"
"-bios ${gcpt}"
"-M nemu"
"-nographic"
"-m 8G"
Expand All @@ -23,7 +23,7 @@ let

nemuCommand = [
"${nemu}/bin/riscv64-nemu-interpreter"
"${gcpt-bin}"
"${gcpt}"
"-b"
"-D $out"
"-C ${name}"
Expand Down
6 changes: 3 additions & 3 deletions builders/cptBuilder/3.checkpoint.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

, qemu
, nemu
, gcpt-bin
, gcpt
, stage2-cluster
}:
let
config = import ../../config.nix;

qemuCommand = [
"${qemu}/bin/qemu-system-riscv64"
"-bios ${gcpt-bin}"
"-bios ${gcpt}"
"-M nemu,simpoint-path=${stage2-cluster},workload=.,cpt-interval=${toString config.intervals},output-base-dir=$out,config-name=${config.workload},checkpoint-mode=SimpointCheckpoint"
"-nographic"
"-m 8G"
Expand All @@ -22,7 +22,7 @@ let

nemuCommand = [
"${nemu}/bin/riscv64-nemu-interpreter"
"${gcpt-bin}"
"${gcpt}"
"-b"
"-D $out"
"-C checkpoint"
Expand Down
6 changes: 3 additions & 3 deletions builders/cptBuilder/default.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{ pkgs
, gcpt-bin
, gcpt
}: let
riscv64-cc = pkgs.pkgsCross.riscv64.stdenv.cc;
# TODO: move folders to cptBuilder/
qemu = pkgs.callPackage ./qemu {};
nemu = pkgs.callPackage ./nemu {inherit riscv64-cc;};
stage1-profiling = pkgs.callPackage ./1.profiling.nix {
inherit qemu nemu gcpt-bin;
inherit qemu nemu gcpt;
};
simpoint = pkgs.callPackage ./simpoint {};
stage2-cluster = pkgs.callPackage ./2.cluster.nix {
inherit simpoint stage1-profiling;
};
stage3-checkpoint = pkgs.callPackage ./3.checkpoint.nix {
inherit qemu nemu gcpt-bin stage2-cluster;
inherit qemu nemu gcpt stage2-cluster;
};
in stage3-checkpoint.overrideAttrs (old: {
passthru = {
Expand Down
5 changes: 2 additions & 3 deletions builders/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ pkgs,
benchmark
}: let
# TODO: rename gcpt-bin => gcpt
gcpt-bin = import ./imgBuilder { inherit pkgs benchmark; };
checkpoints = import ./cptBuilder { inherit pkgs gcpt-bin; };
gcpt = import ./imgBuilder { inherit pkgs benchmark; };
checkpoints = import ./cptBuilder { inherit pkgs gcpt; };
in checkpoints

0 comments on commit a78855b

Please sign in to comment.