mirror of
https://github.com/paboyle/Grid.git
synced 2026-10-21 06:43:17 +01:00
Full reporting for benchmark; save robustness factor
This commit is contained in:
1 parent
5b9267e88d
commit
7359df3501
4 files changed
+27
-12
No files matched your search
@@ -204,10 +204,12 @@ public:
|
||||
#endif
|
||||
size_type bytes = __n*sizeof(_Tp);
|
||||
uint8_t *cp = (uint8_t *)ptr;
|
||||
if ( ptr ) {
|
||||
// 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;
|
||||
for(size_type n=0;n<bytes;n+=4096){
|
||||
cp[n]=0;
|
||||
}
|
||||
}
|
||||
return ptr;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user