1
0
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:
Peter Boyle 2017-06-30 10:49:08 +01:00
parent f20eceb6cd
commit 7a788db3dc

View File

@ -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;
}