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