Skip to content

Commit

Permalink
Fixed the trace downloading error using megatools v1.9.98
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulbera committed Aug 13, 2021
1 parent a8d4a42 commit 5424da0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
<a href="https://doi.org/10.5281/zenodo.5150706"><img src="https://zenodo.org/badge/DOI/10.5281/zenodo.5150706.svg" alt="DOI"></a>
</p>

## Update
<!-- ## Update
### Aug 13th, 2021
It has been brought to our attention that the Ligra and PARSEC-2.1 traces required to evaluate the artifact are not correctly getting downloaded using the `download_traces.pl` script. For now, we ask the reader to download **all** Ligra and PARSEC-2.1 traces (~10 GB) by (1) clicking on the mega link (see [Section 5](https://github.com/CMU-SAFARI/Pythia#more-traces)), and (2) clicking on "Download as ZIP" option. We are working with megatools developer to resolve the issue soon.
It has been brought to our attention that the Ligra and PARSEC-2.1 traces required to evaluate the artifact are not correctly getting downloaded using the `download_traces.pl` script. For now, we ask the reader to download **all** Ligra and PARSEC-2.1 traces (~10 GB) by (1) clicking on the mega link (see [Section 5](https://github.com/CMU-SAFARI/Pythia#more-traces)), and (2) clicking on "Download as ZIP" option. We are working with megatools developer to resolve the issue soon. -->

<details open="open">
<summary>Table of Contents</summary>
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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/
Expand Down
6 changes: 4 additions & 2 deletions scripts/download_traces.pl
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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
{
Expand Down

0 comments on commit 5424da0

Please sign in to comment.