diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2023-04-28 08:55:15 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2023-04-28 08:55:15 +0200 |
commit | 210cf79cdddda090c5ed45e29b32efee73c50494 (patch) | |
tree | 032e5a3906f0522bfee40a001601788bc483b462 | |
parent | c3155b544a5065e8235508059c6512af6c46bd4d (diff) |
simplify makefile for SMAUG benchmarks
-rw-r--r-- | .gitignore | 35 | ||||
-rw-r--r-- | CMakeLists.txt | 6 | ||||
-rw-r--r-- | Makefile | 13 | ||||
-rw-r--r-- | mbw.spec | 63 |
4 files changed, 3 insertions, 114 deletions
@@ -1,34 +1 @@ -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 +mbw diff --git a/CMakeLists.txt b/CMakeLists.txt deleted file mode 100644 index 3b2cb3e..0000000 --- a/CMakeLists.txt +++ /dev/null @@ -1,6 +0,0 @@ -cmake_minimum_required(VERSION 3.10) - -project(mbw VERSION 1.5 LANGUAGES C) - -add_executable(mbw mbw.c) -install(TARGETS mbw DESTINATION bin) @@ -1,15 +1,6 @@ -#CFLAGS=-O2 -Wall -g -NAME=mbw -TARFILE=${NAME}.tar.gz - mbw: mbw.c + gcc -Wall -Wextra -pedantic -O2 -o mbw mbw.c +.PHONY: clean clean: rm -f mbw - rm -f ${NAME}.tar.gz - -${TARFILE}: clean - tar cCzf .. ${NAME}.tar.gz --exclude-vcs ${NAME} || true - -rpm: ${TARFILE} - rpmbuild -ta ${NAME}.tar.gz diff --git a/mbw.spec b/mbw.spec deleted file mode 100644 index f105bdf..0000000 --- a/mbw.spec +++ /dev/null @@ -1,63 +0,0 @@ -Summary: Memory bandwidth benchmark -Name: mbw -Version: 2.0 -Release: 1%{?dist} -License: GPL-3.0-or-later -Buildroot: %{_tmppath}/%{name}-buildroot -Group: System Environment/Base -Source: %{name}.tar.gz -Packager: andras.horvath@gmail.com - -%description -Test memory copy bandwidth (single thread). Switch off swap or make sure array size does not exceed available free RAM. - -%prep -%setup -n %{name} - -%build -make - -%install -mkdir -p %{buildroot}/usr/bin -mkdir -p %{buildroot}%{_mandir}/man1 -install mbw %{buildroot}/usr/bin/mbw -install mbw.1 %{buildroot}%{_mandir}/man1/mbw.1 - -%clean -rm -rf %{buildroot} - -%files -%defattr(-,root,root) -%attr(755,-,-) /usr/bin/mbw -%doc -%attr(644,-,-) %{_mandir}/man1/mbw.1.gz - -%changelog -* Mon Apr 17 2023 Andras Horvath <andras.horvath@gmail.com> 2.0-1 -- Migrated to GPLv3 license -- Small build fixes and cleanups - -* 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 - -* Fri Jan 17 2014 Andras Horvath <andras.horvath@gmail.com> 1.4-1 -- Fix labeling of the displayed results - -* Thu Oct 03 2013 James Slocum <j.m.slocum@gmail.com> 1.3-1 -- Fix MCBLOCK test: copy from the full source buffer, not just its first $blocksize. -- Fix MCBLOCK test: fixed segfault caused by for() going out of bounds - -* Sun Mar 11 2012 Andras Horvath <andras.horvath@gmail.com> 1.2-1 -- Fix MCBLOCK test: actually copy to the full buffer, not just its first $blocksize. - -* Fri Jul 07 2006 Andras Horvath <Andras.Horvath@cern.ch> 1.1-1 -- separate array initialization from work -> faster execution -- getopt() options parsing: suppress average, specific tests only, no. runs -- added quiet mode -- added a new test: memcpy() with given block size - -* Wed Apr 26 2006 Andras Horvath <Andras.Horvath@cern.ch> 1.0-1 -- initial release |