| Thread Tools | Search this thread |
|---|
jimdempseyatthecove
| June 24, 2009 10:20 AM PDT determination of PREFETCH support | ||||
In the Intel Archetecture Software Developer's Manual the description for PREFETCHn states that some processors may simply ignore this instruction (NOP it). The CPUID tables do not seem to return information as if the CPU supports PREFETCH or ignores PREFETCH. Is there a programical way of determining this (other than running a benchmark test at application initialization)? The reason I ask is in a test program on Q6600 PREFETCHn (all variations of n) slow down the program whereas replacing the PREFETCHn FutureAddress with trash = *FutureAddress; // copy aligned __int64 foo = expressionWithDoubleUsingCurrentAddress; Gets marginal speedup Note, the integer load will eventually stall for the read. Whereas PREFETCHn will (should) not introduce a stall waiting for memory. Jim Dempsey | |||||
|
|||||||||||||
| 8285 users have contributed to 31229 threads and 99106 posts to date. |
|---|
| In the past 24 hours, we have 13 new thread(s) 50 new posts(s), and 68 new user(s). In the past 3 days, the most popular thread for everyone has been comparison cilk++, openmp, pthreads first results The most posts were made to comparison cilk++, openmp, pthreads first results The post with the most views is Very amusing... Escalated as Please welcome our newest member tvinni |