Skip to content

Expand the size of the matrix #1

Description

@leankemski

Hi, I tried to change the dimensions for matrix A and B into 1000*1000, and I just changed the size of matrix in mmilt.hpp and sharedmem.py. It did not work, the result of the matrix was wrong. Here are the codes I changed, the board I used is PYNQ-Z1. Can you tell me what else should I change, thx.
in mmult.hpp
// Dimensions for A and B (which determine C)
#define A_ROWS 1000
#define A_COLS 1000
#define B_ROWS A_COLS
#define B_COLS 1000
in sharedmem.py
__MMULT_A_SHAPE = (1000, 1000)
__MMULT_BT_SHAPE = (1000, 1000)
__MMULT_C_SHAPE = (1000, 1000)
(https://user-images.githubusercontent.com/34908328/49782331-deaeaa80-fd50-11e8-8177-13a968a5ca57.png)

I also want to know if i change the type to float would the ip work correctly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions