Commit 7527d24c authored by Philippe SWARTVAGHER's avatar Philippe SWARTVAGHER
Browse files

Repeat memset operation to increase computing duration

parent 997ccfb6
......@@ -83,7 +83,10 @@ static double memset_run_kernel()
#pragma omp parallel for
for (int i = 0; i < nb_threads; i++)
{
memset(a[i], scalar, array_size*sizeof(MEMSET_TYPE));
for (int j = 1; j <= 3; j++)
{
memset(a[i], scalar*j, array_size*sizeof(MEMSET_TYPE));
}
}
PUK_GET_TICK(end_time);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment