diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2023-11-21 16:29:20 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2023-11-21 16:29:20 +0100 |
commit | 592832b5c7dd0aa676082a17a45036968e9352ee (patch) | |
tree | a06734a955ec8465c4484753f4d9d6678b5ac633 /VA | |
parent | 8f0f781c76d3d43ec3da7b7f5a8edbfd30e86f59 (diff) |
VA CPU baseline: rename misleading file_size to input_size
Diffstat (limited to 'VA')
-rw-r--r-- | VA/baselines/cpu/app_baseline.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/VA/baselines/cpu/app_baseline.c b/VA/baselines/cpu/app_baseline.c index 822e1b2..8d95479 100644 --- a/VA/baselines/cpu/app_baseline.c +++ b/VA/baselines/cpu/app_baseline.c @@ -119,16 +119,16 @@ int main(int argc, char **argv) { struct Params p = input_params(argc, argv); - const unsigned int file_size = p.exp == 0 ? p.input_size * p.n_threads : p.input_size; + const unsigned int input_size = p.exp == 0 ? p.input_size * p.n_threads : p.input_size; // Create an input file with arbitrary data. - create_test_file(file_size); + create_test_file(input_size); Timer timer; for(int rep = 0; rep < p.n_warmup + p.n_reps; rep++) { start(&timer, 0, 0); - vector_addition_host(file_size, p.n_threads); + vector_addition_host(input_size, p.n_threads); stop(&timer, 0); unsigned int nr_threads = 0; @@ -139,10 +139,10 @@ int main(int argc, char **argv) { if (rep >= p.n_warmup) { printf("[::] VA CPU | n_threads=%d e_type=%s n_elements=%d " "| throughput_MBps=%f", - nr_threads, XSTR(T), file_size, - file_size * 3 * sizeof(T) / timer.time[0]); + nr_threads, XSTR(T), input_size, + input_size * 3 * sizeof(T) / timer.time[0]); printf(" throughput_MOpps=%f", - file_size / timer.time[0]); + input_size / timer.time[0]); printall(&timer, 0); } } |