assignment 4 part2.py is not working

133 views
Skip to first unread message

M W

unread,
Nov 3, 2020, 1:21:51 AM11/3/20
to cmpt-295-sfu
SFU ID: 301372594
Github username: M-max-cell
Line and file: n/a
Expected behavior:n/a
Observed behavior:n/a
Question:
part2.py does not output results and also when I run ./trans-test it outputs this message after waiting for a long time:

Function 0 (2 total)
Step 1: Validating and generating memory traces
Error: Program timed out.
TEST_TRANS_RESULTS=0:0

Arrvindh Shriraman

unread,
Nov 3, 2020, 3:09:03 PM11/3/20
to cmpt-295-sfu
This is what we see.
Are you running on a system with valgrind installed. Are you trying on the VM. Make sure valgrind is installed. 

M W

unread,
Nov 3, 2020, 3:59:47 PM11/3/20
to cmpt-295-sfu
I am trying this on csil and it has valgrind installed but still the same issue

M W

unread,
Nov 3, 2020, 4:06:07 PM11/3/20
to cmpt-295-sfu
All I see is this after I run "python3 part2.py":

Part B: Testing transpose function
Running ./test-trans -M 32 -N 32

And it stays like that for more than a minute.

M W

unread,
Nov 4, 2020, 1:58:20 AM11/4/20
to cmpt-295-sfu
I found out that when I copy and paste this:
valgrind --log-fd=1 --tool=lackey -v --trace-mem=yes ls -l  
from the Assignments page:
It does not stop unless I press ctrl+c. Is that supposed to happen? Is that is why ./test-trans is not working for me?

Arrvindh Shriraman

unread,
Nov 4, 2020, 2:25:57 PM11/4/20
to cmpt-295-sfu
It will certainly stop at some point if you let it run long enough.
Your machine may just be slow. This is from the 295 VM.





I  04f18725,2
I  04f18740,3
I  04f18743,3
I  04f18746,2
==4852==
==4852== Counted 0 calls to main()
==4852==
==4852== Jccs:
==4852==   total:         184,444
==4852==   taken:         75,878 (41%)
==4852==
==4852== Executed:
==4852==   SBs entered:   196,691
==4852==   SBs completed: 128,823
==4852==   guest instrs:  1,041,277
==4852==   IRStmts:       6,175,439
==4852==
==4852== Ratios:
==4852==   guest instrs : SB entered  = 52 : 10
==4852==        IRStmts : SB entered  = 313 : 10
==4852==        IRStmts : guest instr = 59 : 10
==4852==
==4852== Exit code:       0
Reply all
Reply to author
Forward
Message has been deleted
0 new messages