Processes do not frequently migrate between processors.
Hard CPU affinity
Processes run on processors you specify.
The Linux kernel API:
sched_set_affinity()
sched_get_affinity()
void STREAM_Copy (double *source, double *destination, int size) { int j; size=size/8; for (j=0; j < size; j++) source[j] = destination[j]; }
void byte_copy (char *source, char *destination, int size) { int j; for (j=0; j < size; j++) source[j] = destination[j]; }