diff options
author | Akshay <[email protected]> | 2021-10-13 11:30:31 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2021-10-13 11:54:49 +0100 |
commit | 8660669e2d648775ffe443aa1d7dfb46a82aafc8 (patch) | |
tree | 96185e117ee368d5c3a83543f6bbeffb547f5404 /src/2 | |
parent | aa13912e3ec97705d47207003afb6845c6859bc8 (diff) |
Diffstat (limited to 'src/2')
-rwxr-xr-x | src/2/main | bin | 34312 -> 0 bytes | |||
-rw-r--r-- | src/2/main.c | 22 |
2 files changed, 2 insertions, 20 deletions
diff --git a/src/2/main b/src/2/main deleted file mode 100755 index b999f77..0000000 --- a/src/2/main +++ /dev/null | |||
Binary files differ | |||
diff --git a/src/2/main.c b/src/2/main.c index ee7f2c8..58295a5 100644 --- a/src/2/main.c +++ b/src/2/main.c | |||
@@ -31,8 +31,7 @@ int main() { | |||
31 | 31 | ||
32 | printf("L: %d, M: %d, N: %d\n", l, m, n); | 32 | printf("L: %d, M: %d, N: %d\n", l, m, n); |
33 | 33 | ||
34 | // input for A | 34 | // populate A |
35 | // printf("Enter A:\n"); | ||
36 | for(int i = 0; i < l; i++) { | 35 | for(int i = 0; i < l; i++) { |
37 | for(int j = 0; j < m; j++) { | 36 | for(int j = 0; j < m; j++) { |
38 | // _ = scanf("%d", &a[i][j]); | 37 | // _ = scanf("%d", &a[i][j]); |
@@ -40,8 +39,7 @@ int main() { | |||
40 | } | 39 | } |
41 | } | 40 | } |
42 | 41 | ||
43 | // input for B | 42 | // populate B |
44 | // printf("Enter B:\n"); | ||
45 | for(int i = 0; i < m; i++) { | 43 | for(int i = 0; i < m; i++) { |
46 | for(int j = 0; j < n; j++) { | 44 | for(int j = 0; j < n; j++) { |
47 | // _ = scanf("%d", &b[i][j]); | 45 | // _ = scanf("%d", &b[i][j]); |
@@ -49,22 +47,6 @@ int main() { | |||
49 | } | 47 | } |
50 | } | 48 | } |
51 | 49 | ||
52 | // printf("\nA: \n"); | ||
53 | for(int i = 0; i < l; i++) { | ||
54 | for(int j = 0; j < m; j++) { | ||
55 | // printf("%d\t", a[i][j]); | ||
56 | } | ||
57 | // printf("\n"); | ||
58 | } | ||
59 | |||
60 | // printf("\nB: \n"); | ||
61 | for(int i = 0; i < m; i++) { | ||
62 | for(int j = 0; j < n; j++) { | ||
63 | // printf("%d\t", b[i][j]); | ||
64 | } | ||
65 | // printf("\n"); | ||
66 | } | ||
67 | |||
68 | double start_time = omp_get_wtime(); | 50 | double start_time = omp_get_wtime(); |
69 | int i, j, k; | 51 | int i, j, k; |
70 | #pragma omp parallel for private(j, k) num_threads(1) | 52 | #pragma omp parallel for private(j, k) num_threads(1) |