Advertisement
wavec022

valgrind and matmul

Oct 28th, 2020
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. Valgrind thing
  2.  
  3. Worksheet: look at inside loop for stride-1 vs stride-n
  4.  
  5. Valgrind: compile and time program, then
  6.  
  7. $ valgrind --tool=cachegrind ./matmul 100
  8.  
  9. this prints the output to a file called cachegrind.out.##### (the pid)
  10. so then
  11.  
  12. $ cg_annotate cachegrind.out.#####
  13.  
  14. this will make a dope ass table and we want to look at the value under D1mr in the row for function matmul_a
  15.  
  16. Cool and good
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement