Commit d0e4106e authored by Philippe SWARTVAGHER's avatar Philippe SWARTVAGHER
Browse files

memset: use default size if communications are disabled

parent ac9bf1cd
......@@ -54,7 +54,7 @@ static void memset_print_results()
static int memset_init()
nb_threads = get_nb_openmp_threads();
array_size = params.pingpong_size;
array_size = params.enable_comm ? params.pingpong_size : COMM_BANDWIDTH_BUFFER_SIZE;
printf("# Each thread will work on an array of %d items (%ld KB)\n", array_size, array_size*sizeof(MEMSET_TYPE)/1024);
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