[Bug c++/53292] multi-threaded (OpenMP) is slower than single-threaded
fh_p at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Wed May 9 12:56:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53292
--- Comment #4 from FH <fh_p at hotmail dot com> 2012-05-09 12:53:46 UTC ---
I don't understand your answer.
Timing just times the for loop. Checking array content is single threaded :
this is added to make sure the for loop has done the job correctly and this
check is not timed. The array to initialize is shared by threads (shared by
default) ans not private to each thread.
To me, the test seems relevant. If it's not, why ? And how to modify it ?
More information about the Gcc-bugs
mailing list