From a2346bf8304ba2b11ca95e5b7bc32a3f3c3d1f24 Mon Sep 17 00:00:00 2001 From: ceccs17d55 <43598233+ceccs17d55@users.noreply.github.com> Date: Sat, 12 Oct 2019 10:00:43 +0530 Subject: [PATCH] Added comments and added blank spaces --- MatMul/matmul.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/MatMul/matmul.cpp b/MatMul/matmul.cpp index c340388..9c3a6e9 100644 --- a/MatMul/matmul.cpp +++ b/MatMul/matmul.cpp @@ -15,6 +15,8 @@ #define NCA 15 /* number of columns in matrix A */ #define NCB 7 /* number of columns in matrix B */ + + int main (int argc, char *argv[]) { int tid, nthreads, i, j, k, chunk; @@ -24,7 +26,9 @@ double a[NRA][NCA], /* matrix A to be multiplied */ chunk = 10; /* set loop iteration chunk size */ -/*** Spawn a parallel region explicitly scoping all variables ***/ + + +/*** Spawn a parallel region explicitly scoping all variables hope this works ***/ #pragma omp parallel shared(a,b,c,nthreads,chunk) private(tid,i,j,k) { tid = omp_get_thread_num(); @@ -47,6 +51,8 @@ chunk = 10; /* set loop iteration chunk size */ for (i=0; i