Dann Corbit wrote:What is your build process?
...
I use the Makefile coming with Crafty almost unchanged. My changes are:
in the section "linux":
I changed "-mpreferred-stack-boundary=2" to "-mpreferred-stack-boundary=4" because 2 gave me a compiler error and I found out in previous test 4 is resulting in the fastest binary (although the difference is very small and may be caused by random). I deleted "-march=i686" what is causing an error here too. I also changed "-DINLINE32" to "-DINLINE64".
In all sections which I used:
I added "-DSKILL" because I like this feature very much. Whereever necessary I set "-DCPUS" to 2 because that is what I'm using here.
In the linux-icc and linux-icc-profile section:
I deleted "-xN" because it is causing an error here.
I copied the "profile:" section and called the copy "profile-icc:". I changed "csh" to "bash" cause csh gives me an error and I use bash here. I also changed "$(MAKE) linux-profile" and "$(MAKE) linux" to "$(MAKE) linux-icc-profile" and "$(MAKE) linux-icc".
So I can make the different binaries by typing "make linux" and "make profile-icc". I can see clearly that the different compilers are involved by watching the console. After the profile run the profdir contains "4b054484_07225.dyn 4b05448f_07314.dyn pgopti.dpi pgopti.spi and pgopti.spl" therefore I think the profile run really has happened.
After I noticed that there is no difference in the bench result I made another compilation doing the profile steps manually. After step 1 the executable was very slow as expected. I just ran a bench command with it. After the second compilation I got the same surprising bench result as if typing "make profile-icc".
I possibly have done something wrong, but everything looks as usual to me. In the past I did such compilations very often and got the expected speed difference. That's why I'm so surprised.
vp