MCBLOCK copies only a small area of the array

Bug #1256278 reported by Steffen Kieß
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mbw (Ubuntu)
New
Undecided
Unassigned

Bug Description

mbw -t2 copies only one block of the array several times insted of copying the entire array. This means that (for small block sizes) the cache bandwidth is measured instead of the memory bandwidth.

From the source code:
                for(t=0; t<array_bytes; t+=block_size) {
                        c=mempcpy(b,a,block_size);
                }

This should be something like:
c=mempcpy((char*)b + t,(char*)a + t,block_size);

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.