Skip to content

Commit 9102a87

Browse files
committed
improve data bash script
1 parent 6924aba commit 9102a87

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

data/prepare_input.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
#!/bin/bash
2+
# Based on trace files in csv/, we will generate 23 trace folders (in parallel) that will be used as input folder for the simulator
13
for file in csv/openb_pod_list*; do
24
echo $file
5+
# Create trace folders with the name of csv trace file (without .csv)
36
filename="${file##*/}"
47
OUTDIR="${filename%.*}"
58
mkdir -p $OUTDIR
9+
# Copy node yaml (generated by openb_node_list_gpu_node.csv) to the trace folder
610
cp node_yaml/openb_node_list_gpu_node.yaml $OUTDIR/
11+
# Transform csv file to yaml file and put it under trace folder
712
python3 pod_csv_to_yaml.py $file &
8-
done
13+
done
14+
wait && date

0 commit comments

Comments
 (0)