Skip to content

Commit

Permalink
Automatically generate lr_10MB.txt data
Browse files Browse the repository at this point in the history
File not provided in data distribution, generate locally.
  • Loading branch information
kevinastock committed May 13, 2013
1 parent df6b7b5 commit fe7d977
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data_tool/data-gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
TOP=./data

if test ! -d $TOP ; then
echo "Please download data.tar.gz and decompress it"
echo "Please download data2.tar.gz and decompress it"
echo "You can download it from the pdos.csail.mit.edu/metis, or \
am.csail.mit.edu:~/metis_data_release.git"
exit -1
Expand All @@ -30,6 +30,7 @@ while [ "$i" -lt "887" ]; do
done

# Generate linear regression input
dd if=/dev/urandom of=data/lr_10MB.txt count=1024 bs=10240
i=0
while [ "$i" -lt "400" ]; do
cat $TOP/lr_10MB.txt >> $TOP/lr_4GB.txt
Expand Down

0 comments on commit fe7d977

Please sign in to comment.