Change-Id: I38b5dc89edafd1768caa34158c2746c7ef35c31e
return NULL;
}
- if (!bench->setSize(values["size"].int_value)) {
+ if (!bench->setSize(size)) {
printf("Failed to allocate buffers for benchmark.\n");
return NULL;
}
if (!(*it)->canRun()) {
continue;
}
- if (!(*it)->setSize(values["num_warm_loops"].int_value)) {
+ if (!(*it)->setSize(values["size"].int_value)) {
printf("Failed creating buffer for bandwidth test.\n");
return false;
}
_buffer = NULL;
}
- if (_size == 0) {
+ if (size == 0) {
_size = DEFAULT_SINGLE_BUFFER_SIZE;
} else {
_size = size;