This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/53292] multi-threaded (OpenMP) is slower than single-threaded


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 ?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]