Recently Ive started to work on the optimization of a program using OpenMP to take advantage of HT technology on P4 processors. Besides the difficulties behind parallelizing software, Ive been trying to solve and understand some basic issues about OpenMP and the Intel compiler but, still, I have the following questions.
1) Ive tried to get some OpenMP C++ samples from the web. Although Ive found about 5 samples, does any body know where I could find some more? Nearly all the samples Ive found are Fortran specific.
2) Does it make any sense to user registrer variables to optimize OpenMp code? can they be used?
3) Ive read in some docs about optimizing Pentium IV code, that one should "avoid mixing code & data. How? Pad 1024 bytes apart (one cache line)". What does this mean? although Ive been programming C++ applications for a good time now, Ive never seen something like this. How can this be done? is this specific por function calls? global variables? parameters? Is there any samples?
4) I read on another post that OpenMP programs work faster with the -Od option... is this so? does -O3 option work?
Thanks to everyone, Greetings,