From 5424da0462b0f14a292d1050d13379444cd5421f Mon Sep 17 00:00:00 2001 From: Rahul Bera Date: Sat, 14 Aug 2021 01:08:04 +0200 Subject: [PATCH] Fixed the trace downloading error using megatools v1.9.98 --- README.md | 17 ++++++++++++----- scripts/download_traces.pl | 6 ++++-- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 7e845f2..21331b1 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,9 @@ DOI

-## Update +
Table of Contents @@ -75,13 +75,13 @@ Most of the prefetchers (e.g., SPP [1], Bingo [2], IPCP [3]) reuse codes from [ The infrastructure has been tested with the following system configuration: * G++ v6.3.0 20170516 * Perl v5.24.1 - * [Megatools 1.9.98](https://megatools.megous.com) (required to download traces) + * [Megatools 1.11.0](https://megatools.megous.com) (Note that v1.9.98 does **NOT** work) ## Installation 0. Install necessary prequisites ```bash - sudo apt install perl megatools + sudo apt install perl ``` 1. Clone the GitHub repo @@ -117,7 +117,14 @@ The infrastructure has been tested with the following system configuration: ``` ## Preparing Traces -1. Use the `download_traces.pl` perl script to download necessary ChampSim traces used in our paper. +0. Install the megatools executable + + ```bash + cd $PYTHIA_HOME/scripts + wget https://megatools.megous.com/builds/experimental/megatools-1.11.0-git-20210505-linux-x86_64.tar.gz + tar -xvf megatools-1.11.0-git-20210505-linux-x86_64.tar.gz + ``` +1. Use the `download_traces.pl` perl script to download necessary ChampSim traces used in our paper. ```bash mkdir $PYTHIA_HOME/traces/ diff --git a/scripts/download_traces.pl b/scripts/download_traces.pl index ca981a6..4b1414b 100755 --- a/scripts/download_traces.pl +++ b/scripts/download_traces.pl @@ -1,9 +1,11 @@ #!/usr/bin/perl -use lib '/mnt/panzer/rahbera/ChampSim/scripts'; use warnings; use Getopt::Long; +die "\$PYTHIA_HOME env variable is not defined.\nHave you sourced setvars.sh?\n" unless defined $ENV{'PYTHIA_HOME'}; + +my $megatool_exe = "$ENV{'PYTHIA_HOME'}/scripts/megatools-1.11.0-git-20210505-linux-x86_64/megatools"; my $input_file; my $dir="."; GetOptions('csv=s' => \$input_file, @@ -25,7 +27,7 @@ my $cmd; if($trace_file_url =~ /mega\.nz/) { - $cmd = "megadl $trace_file_url --path=$dir"; + $cmd = "$megatool_exe dl --path=$dir $trace_file_url"; } else {