-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed #! to python in all top-level scripts, other cleanup and impo…
…rt fixes
- Loading branch information
1 parent
bbefc49
commit a8eb37a
Showing
7 changed files
with
52 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
|
||
|
||
setuptools.setup(name='orio', | ||
version='0.6.0', | ||
version='0.6.1', | ||
description='ORIO -- An Annotation-Based Performance Tuning Tool', | ||
author='Boyana Norris and Albert Hartono', | ||
author_email='[email protected]', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,48 @@ | ||
/*@ begin PerfTuning ( | ||
def build { | ||
arg build_command = 'gcc'; | ||
} | ||
def performance_counter { | ||
arg method = 'basic timer'; | ||
arg repetitions = 10; | ||
} | ||
def performance_params { | ||
param CFLAGS[] = ['-O0', '-O1', '-O2', '-O3']; | ||
param UF[] = range(2,17,2); | ||
} | ||
void axpy4(int n, double *y, double a1, double *x1, double a2, double *x2, double a3, double *x3, | ||
double a4, double *x4) { | ||
def input_params { | ||
param N[] = [10000,1000000]; | ||
} | ||
register int i; | ||
def input_vars { | ||
decl static double y[N] = 0; | ||
decl double a1 = random; | ||
decl double a2 = random; | ||
decl double a3 = random; | ||
decl double a4 = random; | ||
decl static double x1[N] = random; | ||
decl static double x2[N] = random; | ||
decl static double x3[N] = random; | ||
decl static double x4[N] = random; | ||
} | ||
/*@ begin Align (x1[],x2[],x3[],x4[],y[]) @*/ | ||
/*@ begin Loop ( | ||
transform Unroll(ufactor=20, parallelize=True) | ||
for (i=0; i<=n-1; i++) | ||
y[i]=y[i]+a1*x1[i]+a2*x2[i]+a3*x3[i]+a4*x4[i]; | ||
) @*/ | ||
def search { | ||
arg algorithm = 'Mlsearch'; | ||
arg total_runs = 10; | ||
} | ||
) @*/ | ||
|
||
for (i=0; i<=n-1; i++) | ||
y[i]=y[i]+a1*x1[i]+a2*x2[i]+a3*x3[i]+a4*x4[i]; | ||
int i; | ||
|
||
/*@ end @*/ | ||
/*@ begin Loop ( | ||
transform Unroll(ufactor=UF) | ||
for (i=0; i<=N-1; i++) | ||
y[i] = y[i] + a1*x1[i] + a2*x2[i] + a3*x3[i] + a4*x4[i]; | ||
) @*/ | ||
for (i=0; i<=N-1; i++) | ||
y[i] = y[i] + a1*x1[i] + a2*x2[i] + a3*x3[i] + a4*x4[i]; | ||
/*@ end @*/ | ||
|
||
} | ||
/*@ end @*/ | ||
|