matmul Issue

82 views
Skip to first unread message

Trevor Bonas

unread,
Oct 25, 2020, 8:38:15 PM10/25/20
to cmpt-295-sfu
SFU ID:  tbo...@sfu.ca
Github username: trevorbonas
Github Link:  g...@github.com:CMPT-295-SFU/assignment-3-trevorbonas.git
Line and file: Unknown line, matmul.s or test_matmul.s
Expected behavior: Outputs: 102 126 150
Observed behavior: Outputs: Venus ran into a simulator error!
Attempting to access uninitialized memory between the stack and heap. Attempting to access '4' bytes at address '1073741968'.
Question: I can't get my matmul to work correctly, I'm not sure what I'm doing wrong.

Also I read some of the other posts and testing in venus online was recommended, in that case would I just copy and paste and edit test_matmul, utils.s, and matmul.s so they could run as a single file on venus?

ali sedaghati

unread,
Oct 25, 2020, 9:34:14 PM10/25/20
to cmpt-295-sfu
There are some algorithmic problems in your code. For example, in lines 57-59 of matmul.s,  you're not calculating the formula you've written in line 55 (there's a problem with this formula too and s2 should be replaced with s3). 

ali sedaghati

unread,
Oct 25, 2020, 9:36:19 PM10/25/20
to cmpt-295-sfu
Basically, this error means that you're might be trying to reach an out-of-bound element. Make sure that all of your pointer calculations are correct.

Trevor Bonas

unread,
Oct 26, 2020, 4:16:24 AM10/26/20
to cmpt-295-sfu

Thank you very much, I figured out exactly how I was messing up algorithmically. Everything works now.
Reply all
Reply to author
Forward
0 new messages