summaryrefslogtreecommitdiff
path: root/tests/cppallocation/compute.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cppallocation/compute.cpp')
-rw-r--r--tests/cppallocation/compute.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cppallocation/compute.cpp b/tests/cppallocation/compute.cpp
index 8439ffb6..5407e06d 100644
--- a/tests/cppallocation/compute.cpp
+++ b/tests/cppallocation/compute.cpp
@@ -40,11 +40,11 @@ int main(int argc, char** argv)
buf[ct] = (uint32_t)ct;
}
- ain->copy1DRangeFrom(0, numElems, buf, numElems*sizeof(uint32_t));
+ ain->copy1DRangeFrom(0, numElems, buf);
sc->forEach_multiply(ain, aout);
- aout->copy1DRangeTo(0, numElems, buf, numElems*sizeof(uint32_t));
+ aout->copy1DRangeTo(0, numElems, buf);
for (uint32_t ct=0; ct < numElems; ct++) {
if (buf[ct] != ct * 2) {