From 949adb3d4620a55fdefdc0035804950600c44eee Mon Sep 17 00:00:00 2001 From: David Kaufmann Date: Tue, 1 Nov 2011 19:04:19 +0100 Subject: [PATCH] add timers --- openmp/merge/generate_random.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openmp/merge/generate_random.sh b/openmp/merge/generate_random.sh index 9bca1cc..5832fe5 100755 --- a/openmp/merge/generate_random.sh +++ b/openmp/merge/generate_random.sh @@ -20,6 +20,7 @@ done echo "1${NULLEN} values" echo "generating numbers" +echo $(date) echo ` unsorted1a & echo ` unsorted1b & echo ` unsorted2a & @@ -28,6 +29,7 @@ echo `> unsorted1 sed '/^$/d' unsorted1b >> unsorted1 @@ -35,6 +37,10 @@ sed '/^$/d' unsorted2a >> unsorted2 sed '/^$/d' unsorted2b >> unsorted2 echo "formatting numlist" +echo $(date) cat unsorted1 | sort -n | sed -e ':a;N;$!ba;s/\n/,/g' -e 's/^/,/' -e 's/,[0]*/,/g' -e 's/^,/\tint a[] = {/' -e 's/$/,-1};/' >numlist1.c & cat unsorted2 | sort -n | sed -e ':a;N;$!ba;s/\n/,/g' -e 's/^/,/' -e 's/,[0]*/,/g' -e 's/^,/\tint b[] = {/' -e 's/$/,-1};/' >numlist2.c & pwait + +echo "Done." +echo $(date) -- 2.43.0