ejd wrote:You need to give me a little more information on what compiler you are using and how exactly you are running this loop. From what you have shown below it is hard to say much. The one thing that I will note, is that in the second loop you have declared iter and so it is private, while in the first loop iter is declared elsewhere and may be private or shared. This could make a big difference.
ejd wrote:Your code looks reasonable and I tried it using a couple of compilers others than Microsoft and architectures other than Intel. I don't see the large variation you are describing.
ejd wrote:I just tried it using an Intel compiler and an Intel 2 chip (not 2 core) system and I don't see the variation you described there either.
Users browsing this forum: No registered users and 10 guests