Skip to content

Commit

Permalink
[matmul] format
Browse files Browse the repository at this point in the history
  • Loading branch information
andrej committed Jun 12, 2024
1 parent dd20176 commit 9028269
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aie_kernels/aie2/mm.cc
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,8 @@ extern "C" {
r, s, t) \
void matmul_scalar_##mlir_type_in##_##mlir_type_out( \
ctype_in *a_in, ctype_in *b_in, ctype_out *c_out) { \
matmul_scalar<ctype_in, ctype_out, DIM_M, DIM_K, DIM_N>(a_in, b_in, c_out);\
matmul_scalar<ctype_in, ctype_out, DIM_M, DIM_K, DIM_N>(a_in, b_in, \
c_out); \
}

#define zero_vectorized_c_func(ctype_in, mlir_type_in, ctype_out, \
Expand Down
1 change: 1 addition & 0 deletions programming_examples/basic/matrix_multiplication/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ int main(int argc, const char *argv[]) {
std::vector<A_DATATYPE> AVec(A_VOLUME);
for (int i = 0; i < A_VOLUME; i++) {
AVec[i] = matmul_common::random_bfloat16_t();
// AVec[i] = i;
}
memcpy(bufA, AVec.data(), (AVec.size() * sizeof(A_DATATYPE)));
B_DATATYPE *bufB = bo_b.map<B_DATATYPE *>();
Expand Down

0 comments on commit 9028269

Please sign in to comment.