1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-12 20:27:06 +01:00

NUMA improvements worth preserving from AMD EPYC tests

This commit is contained in:
Peter Boyle
2017-07-08 22:27:11 -04:00
parent 7b0237b081
commit 40e119c61c
3 changed files with 45 additions and 26 deletions

View File

@ -195,7 +195,8 @@ public:
#endif
size_type bytes = __n*sizeof(_Tp);
uint8_t *cp = (uint8_t *)ptr;
#pragma omp parallel for
// One touch per 4k page, static OMP loop to catch same loop order
#pragma omp parallel for schedule(static)
for(size_type n=0;n<bytes;n+=4096){
cp[n]=0;
}