Skip to content

Commit

Permalink
Update headers for some examples
Browse files Browse the repository at this point in the history
tmm, strmm, ssymm

Signed-off-by: Uday Reddy <udayreddy@gmail.com>
  • Loading branch information
bondhugula committed May 13, 2011
1 parent 9e00fde commit 310205c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 15 deletions.
3 changes: 3 additions & 0 deletions examples/ssymm/decls.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#define NMAX 2000

static double a[NMAX][NMAX], b[NMAX][NMAX], c[NMAX][NMAX];
4 changes: 1 addition & 3 deletions examples/ssymm/ssymm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <stdlib.h>
#include <math.h>
#include <sys/time.h>
#include "decls.h"

#define TIME 1

Expand All @@ -21,9 +22,6 @@ double rtclock()
return(Tp.tv_sec + Tp.tv_usec*1.0e-6);
}

#define NMAX 2000

static double a[NMAX][NMAX], b[NMAX][NMAX], c[NMAX][NMAX];

void ssymm(long N) {
int i,j,k;
Expand Down
6 changes: 4 additions & 2 deletions examples/strmm/decls.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#define N 1000
double f[N][N+13];
#define NMAX 2000

static double a[NMAX][NMAX], b[NMAX][NMAX];

4 changes: 1 addition & 3 deletions examples/strmm/strmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <stdlib.h>
#include <math.h>
#include <sys/time.h>
#include "decls.h"

#define TIME 1

Expand All @@ -21,9 +22,6 @@ double rtclock()
return(Tp.tv_sec + Tp.tv_usec*1.0e-6);
}

#define NMAX 2000

static double a[NMAX][NMAX], b[NMAX][NMAX];

void strmm(long N) {
int i,j,k;
Expand Down
7 changes: 7 additions & 0 deletions examples/tmm/decls.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#define NMAX 2000

#define A_SIZE NMAX
#define B_SIZE NMAX
static double A[A_SIZE][A_SIZE];
static double B[B_SIZE][B_SIZE];
static double C[B_SIZE][B_SIZE];
8 changes: 1 addition & 7 deletions examples/tmm/tmm.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <stdio.h>
#include <math.h>
#include <sys/time.h>
#include "decls.h"

#define TIME 1

Expand All @@ -23,13 +24,6 @@ double rtclock()
#endif


#define NMAX 2000

#define A_SIZE NMAX
#define B_SIZE NMAX
static double A[A_SIZE][A_SIZE];
static double B[B_SIZE][B_SIZE];
static double C[B_SIZE][B_SIZE];

void tmm(long Ni, long Nj, long Nk) {
int i, j, k;
Expand Down

0 comments on commit 310205c

Please sign in to comment.