From bda8301a4928adefb98e99424cd40fda7f18317d Mon Sep 17 00:00:00 2001 From: Willian Z Date: Sun, 24 Apr 2022 20:36:31 +0800 Subject: Create .gitignore --- .gitignore | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d924fe3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,34 @@ +build/ + +# Prerequisites +*.d + +# Compiled Object files +*.slo +*.lo +*.o +*.obj + +# Precompiled Headers +*.gch +*.pch + +# Compiled Dynamic libraries +*.so +*.dylib +*.dll + +# Fortran module files +*.mod +*.smod + +# Compiled Static libraries +*.lai +*.la +*.a +*.lib + +# Executables +*.exe +*.out +*.app \ No newline at end of file -- cgit v1.2.3 From 91132a4ffa92377706218c73200332ee870e17af Mon Sep 17 00:00:00 2001 From: Willian Z Date: Sun, 24 Apr 2022 20:36:35 +0800 Subject: Create CMakeLists.txt --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..49a9bce --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.10) + +project(mbw VERSION 1.4) + +add_executable(mbw mbw.c) -- cgit v1.2.3 From 85f05e79dc4416735d86500948b3e682cffe5d6c Mon Sep 17 00:00:00 2001 From: Willian Z Date: Sun, 24 Apr 2022 20:36:48 +0800 Subject: fix mempcpy not available on mac --- mbw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mbw.c b/mbw.c index acfbcff..884fd60 100644 --- a/mbw.c +++ b/mbw.c @@ -120,10 +120,10 @@ double worker(unsigned long long asize, long *a, long *b, int type, unsigned lon char* bb = (char*)b; gettimeofday(&starttime, NULL); for (t=array_bytes; t >= block_size; t-=block_size, aa+=block_size){ - bb=mempcpy(bb, aa, block_size); + bb=(char *) memcpy(bb, aa, block_size) + block_size; } if(t) { - bb=mempcpy(bb, aa, t); + bb=(char *) memcpy(bb, aa, t) + t; } gettimeofday(&endtime, NULL); } else if(type==TEST_DUMB) { /* dumb test */ -- cgit v1.2.3 From 93adb6275fb5915f22aaa90f72082eb5f64f1749 Mon Sep 17 00:00:00 2001 From: Willian Z Date: Sun, 24 Apr 2022 20:36:53 +0800 Subject: Update README --- README | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README b/README index 218fd8b..e8f466e 100644 --- a/README +++ b/README @@ -2,10 +2,12 @@ MBW determines the "copy" memory bandwidth available to userspace programs. Its 2006, 2012 Andras.Horvath atnospam gmail.com 2013 j.m.slocum atnospam gmail.com +2022 Willian.Zhang http://github.com/raas/mbw +https://github.com/Willian-Zhang/mbw +'mbw 1000' to run copy memory test on all methods with 1 GiB memory. 'mbw -h' for help watch out for swap usage (or turn off swap) - -- cgit v1.2.3 From 4bb24f6d8559767babc2c6574d85b0ce4514ef34 Mon Sep 17 00:00:00 2001 From: Willian Z Date: Sun, 24 Apr 2022 20:51:24 +0800 Subject: Update version to 1.4.1 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 49a9bce..d10c451 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.10) -project(mbw VERSION 1.4) +project(mbw VERSION 1.4.1) add_executable(mbw mbw.c) -- cgit v1.2.3 From bf1dabe29f0a2de8d613b94bde87ed624ce03865 Mon Sep 17 00:00:00 2001 From: Willian Z Date: Sun, 24 Apr 2022 21:30:21 +0800 Subject: fix cmake no install --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d10c451..f739d7d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,3 +3,4 @@ cmake_minimum_required(VERSION 3.10) project(mbw VERSION 1.4.1) add_executable(mbw mbw.c) +install(TARGETS mbw DESTINATION bin) -- cgit v1.2.3