fixed working version of matrix multiplcation
This commit is contained in:
@@ -20,7 +20,7 @@ void *malloc(size_t size);
|
||||
void init_seq(double *a, const unsigned n_rows_a, const unsigned n_cols_a) {
|
||||
for (size_t i = 0; i < n_rows_a; i++) {
|
||||
for (size_t j = 0; j < n_cols_a; j++) {
|
||||
a[i*n_cols_a + j] = i*n_cols_a + j;
|
||||
a[i*n_cols_a + j] = 2.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -148,7 +148,7 @@ int main(void) {
|
||||
/* For measuring time */
|
||||
double t0, t1;
|
||||
|
||||
const unsigned scale = 1;
|
||||
const unsigned scale = 3;
|
||||
const unsigned n_rows_a = 4 * scale;
|
||||
const unsigned n_cols_a = 3 * scale;
|
||||
const unsigned n_rows_b = 3 * scale;
|
||||
|
||||
BIN
Tests/isa/testC
BIN
Tests/isa/testC
Binary file not shown.
Reference in New Issue
Block a user