Closed dmdu closed 9 years ago
Updated now.
Thanks for the feedback. Declared sum properly and now compiling using: make CC=gcc CFLAGS='-O3 -march=native -DTUNED' stream I think I am using the reduction as it should be used. However, I am consistently getting 0 for the duration of the dot product calculation, and I am not entirely sure why.
As Jed said yesterday, you should use the dot result 'sum' otherwise the compiler will automatically remove your code.
Thanks @fdkong. See also this mailing list reply. https://jedbrown.org/lists/archives/hpc-perf-analysis/2015-January/000000.html
Thanks for these comments! I knew it was something funny like that because the code looked right. Do you still want us to push the updated stream.c or, since it has been merged already, should we add the results file only?
Push your version and I'll resolve conflicts in the merge. Also, if you worked with someone on the commit, please add a tag crediting them at the end of the commit message
Helped-by: Valuable Friend <friend@host.tld>
(Reviewed-by
is also common.)
Thanks! Can you commit the source change that implements
Dot
and add it to this pull request?