main
|
Last change
on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago |
|
Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.
git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c
|
-
Property mode
set to
100755
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 | ## create_pped_version.sh for in /Users/pouchet
|
|---|
| 3 | ##
|
|---|
| 4 | ## Made by Louis-Noel Pouchet
|
|---|
| 5 | ## Contact: <pouchet@cse.ohio-state.edu>
|
|---|
| 6 | ##
|
|---|
| 7 | ## Started on Mon Oct 31 16:20:01 2011 Louis-Noel Pouchet
|
|---|
| 8 | ## Last update Mon Oct 31 20:42:35 2011 Louis-Noel Pouchet
|
|---|
| 9 | ##
|
|---|
| 10 |
|
|---|
| 11 | if [ $# -lt 1 ]; then
|
|---|
| 12 | echo "Usage: create_pped_version.sh <file.F90> [gcc -E flags]";
|
|---|
| 13 | exit 1;
|
|---|
| 14 | fi;
|
|---|
| 15 | args="$2";
|
|---|
| 16 | file="$1";
|
|---|
| 17 | head -n 8 $file | sed 's/F90/f90/' > .__poly_top.f;
|
|---|
| 18 | tail -n +9 $file > .__poly_bottom.F;
|
|---|
| 19 | filename=`echo "$file" | sed -e "s/\(.*\).F90/\1/1"`;
|
|---|
| 20 | filenameorig=`basename $file`;
|
|---|
| 21 | benchdir=`dirname "$file"`;
|
|---|
| 22 | gcc -E .__poly_bottom.F -I$benchdir $args 2>/dev/null > .__tmp_poly.f
|
|---|
| 23 | #echo "gcc -E .__poly_bottom.f -I$benchdir -Iutilities $args 2>/tmp/moh > .__tmp_poly.f"
|
|---|
| 24 | sed -e "/^[ ]*$/d" .__tmp_poly.f | sed -e '/^#/d' | sed -e "s~.__poly_bottom.f~$filenameorig~g" > .__poly_bottom.f;
|
|---|
| 25 | cat .__poly_top.f > $filename.preproc.f90;
|
|---|
| 26 | #echo "#include <polybench.h>\n" >> $filename.preproc.c;
|
|---|
| 27 | cat .__poly_bottom.f >> $filename.preproc.f90;
|
|---|
| 28 | rm -f .__tmp_poly.f .__poly_bottom.f .__poly_top.f .__poly_bottom.F ;
|
|---|
| 29 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.