Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
58242791
Commit
58242791
authored
Jun 12, 2022
by
Antoine Kaufmann
Browse files
experiments: add separate experiments/ae/deterministic-parse.sh script
parent
ad89039a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
12 deletions
+20
-12
experiments/ae/deterministic-parse.sh
experiments/ae/deterministic-parse.sh
+19
-0
experiments/ae/deterministic.sh
experiments/ae/deterministic.sh
+1
-12
No files found.
experiments/ae/deterministic-parse.sh
0 → 100755
View file @
58242791
#!/bin/bash
set
-x
# Requires two arguments: number of runs and results directory with json
run_num
=
$1
dir
=
$2
# Parse the json file into experiment's out_dir
for
i
in
$(
seq
1
$run_num
)
;
do
mkdir
-p
$dir
/dt-gt-ib-sw/
${
i
}
python3 pyexps/log_parser.py
$dir
/dt-gt-ib-sw-
$i
.json
cat
$dir
/dt-gt-ib-sw/
${
i
}
/host.client.0 |
awk
'/system.pc.simbricks_0:/ {print $1}'
>
$dir
/dt-gt-ib-sw/
${
i
}
/host_trim
done
diff
$dir
/dt-gt-ib-sw/1/host_trim
$dir
/dt-gt-ib-sw/2/host_trim
>
$dir
/dt-gt-ib-sw/host_trim12.diff
experiments/ae/deterministic.sh
View file @
58242791
...
@@ -10,16 +10,5 @@ else
...
@@ -10,16 +10,5 @@ else
run_num
=
$1
run_num
=
$1
fi
fi
python3 run.py pyexps/ae/determ.py
--filter
dt-gt-ib-sw
--force
--verbose
--runs
=
$1
python3 run.py pyexps/ae/determ.py
--filter
dt-gt-ib-sw
--force
--verbose
--runs
=
$1
START
=
1
# Parse the json file into experiment's out_dir
./ae/deterministic-parse.sh
$run_num
out
for
i
in
$(
seq
1
$run_num
)
;
do
mkdir
-p
out/dt-gt-ib-sw/
${
i
}
python3 pyexps/log_parser.py out/dt-gt-ib-sw-
$i
.json
cat
out/dt-gt-ib-sw/
${
i
}
/host.client.0 |
awk
'/system.pc.simbricks_0:/ {print $1}'
>
out/dt-gt-ib-sw/
${
i
}
/host_trim
done
diff out/dt-gt-ib-sw/1/host_trim out/dt-gt-ib-sw/2/host_trim
>
out/dt-gt-ib-sw/host_trim12.diff
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment