From cc9f776336581605458cbdd0c7af13d99c8028f5 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 27 Sep 2024 14:09:55 +0200 Subject: Rename "dumb" to "plain" --- mbw.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/mbw.c b/mbw.c index 5f294f4..4fce507 100644 --- a/mbw.c +++ b/mbw.c @@ -39,10 +39,10 @@ /* test types */ #define TEST_MEMCPY 0 -#define TEST_DUMB 1 +#define TEST_PLAIN 1 #define TEST_MCBLOCK 2 #define TEST_AVX512 3 -#define TEST_READ_DUMB 4 +#define TEST_READ_PLAIN 4 /* version number */ #define VERSION "1.5+smaug" @@ -341,12 +341,12 @@ void usage() printf(" -n: number of runs per test (0 to run forever)\n"); printf(" -a: Don't display average\n"); printf(" -t%d: memcpy test\n", TEST_MEMCPY); - printf(" -t%d: dumb (b[i]=a[i] style) test\n", TEST_DUMB); + printf(" -t%d: plain (b[i]=a[i] style) test\n", TEST_PLAIN); printf(" -t%d: memcpy test with fixed block size\n", TEST_MCBLOCK); #ifdef HAVE_AVX512 printf(" -t%d: AVX512 copy test\n", TEST_AVX512); #endif - printf(" -t%d: dumbp read test\n", TEST_READ_DUMB); + printf(" -t%d: plain read test\n", TEST_READ_PLAIN); printf(" -b : block size in bytes for -t2 (default: %d)\n", DEFAULT_BLOCK_SIZE); printf(" -q: quiet (print statistics only)\n"); #ifdef NUMA @@ -394,8 +394,8 @@ void *thread_worker(void *arg) unsigned int long_size=sizeof(long); unsigned long long array_bytes=arr_size*long_size; unsigned long long t; - unsigned long long const dumb_start = thread_id * (arr_size / num_threads); - unsigned long long const dumb_stop = (thread_id + 1) * (arr_size / num_threads); + unsigned long long const plain_start = thread_id * (arr_size / num_threads); + unsigned long long const plain_stop = (thread_id + 1) * (arr_size / num_threads); while (!done) { if (sem_wait(&start_sem) != 0) { @@ -415,20 +415,20 @@ void *thread_worker(void *arg) if(t) { dst=(char *) memcpy(dst, src, t) + t; } - } else if(test_type==TEST_DUMB) { /* dumb test */ - for(t=dumb_start; t