mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-13 01:05:36 +00:00
Guard first touch
This commit is contained in:
parent
f20eceb6cd
commit
7a788db3dc
@ -100,7 +100,9 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
// First touch optimise in threaded loop
|
// First touch optimise in threaded loop
|
||||||
uint8_t *cp = (uint8_t *)ptr;
|
uint8_t *cp = (uint8_t *)ptr;
|
||||||
|
#ifdef GRID_OMP
|
||||||
#pragma omp parallel for
|
#pragma omp parallel for
|
||||||
|
#endif
|
||||||
for(size_type n=0;n<bytes;n+=4096){
|
for(size_type n=0;n<bytes;n+=4096){
|
||||||
cp[n]=0;
|
cp[n]=0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user