Skip to content

Commit

Permalink
Bump to v1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Andras Horvath committed Apr 26, 2022
1 parent 482b2f5 commit d2cd3d3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.10)

project(mbw VERSION 1.4.1)
project(mbw VERSION 1.5)

add_executable(mbw mbw.c)
install(TARGETS mbw DESTINATION bin)
12 changes: 6 additions & 6 deletions mbw.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#define TEST_MCBLOCK 2

/* version number */
#define VERSION "1.4"
#define VERSION "1.5"

/*
* MBW memory bandwidth benchmark
Expand Down Expand Up @@ -116,14 +116,14 @@ double worker(unsigned long long asize, long *a, long *b, int type, unsigned lon
/* timer stops */
gettimeofday(&endtime, NULL);
} else if(type==TEST_MCBLOCK) { /* memcpy block test */
char* aa = (char*)a;
char* bb = (char*)b;
char* src = (char*)a;
char* dst = (char*)b;
gettimeofday(&starttime, NULL);
for (t=array_bytes; t >= block_size; t-=block_size, aa+=block_size){
bb=(char *) memcpy(bb, aa, block_size) + block_size;
for (t=array_bytes; t >= block_size; t-=block_size, src+=block_size){
dst=(char *) memcpy(dst, src, block_size) + block_size;
}
if(t) {
bb=(char *) memcpy(bb, aa, t) + t;
dst=(char *) memcpy(dst, src, t) + t;
}
gettimeofday(&endtime, NULL);
} else if(type==TEST_DUMB) { /* dumb test */
Expand Down
5 changes: 4 additions & 1 deletion mbw.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Summary: Memory bandwidth benchmark
Name: mbw
Version: 1.4
Version: 1.5
Release: 1%{?dist}
License: LGPLv2.1
Buildroot: %{_tmppath}/%{name}-buildroot
Expand Down Expand Up @@ -33,6 +33,9 @@ rm -rf %{buildroot}
%attr(644,-,-) %{_mandir}/man1/mbw.1.gz

%changelog
* Tue Apr 26 2022 Andras Horvath <andras.horvath@gmail.com> 1.5-1
- New platform support (Mac)

* Fri May 04 2018 Andras Horvath <andras.horvath@gmail.com> 1.4-2
- Explicitly specify licence version

Expand Down

0 comments on commit d2cd3d3

Please sign in to comment.