Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion omp.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <sys/time.h>

#define RANDLIMIT 5
#define N 2000
#define N 6000
#define NUMLIMIT 70.0
#define THREADS 8

Expand Down
4 changes: 2 additions & 2 deletions pthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <sys/time.h>

#define RANDLIMIT 5
#define N 2000
#define N 6000
#define NUMLIMIT 70.0
#define THREADS 8

Expand Down Expand Up @@ -69,7 +69,7 @@ int main(int argc, char *argv[]) {
gettimeofday(&stop, 0);

/*Print the timing*/
fprintf(stdout, "Time Taken = %.6f seconds.\n\nn",
fprintf(stdout, "Time Taken = %.6f seconds.\n\n",
(stop.tv_sec + stop.tv_usec * 1e-6) -
(start.tv_sec + start.tv_usec * 1e-6));

Expand Down
2 changes: 1 addition & 1 deletion seq.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <sys/time.h>

#define RANDLIMIT 5
#define N 2000
#define N 6000
#define NUMLIMIT 70.0

float a[N][N];
Expand Down