summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2023-04-28 08:55:15 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2023-04-28 08:55:15 +0200
commit210cf79cdddda090c5ed45e29b32efee73c50494 (patch)
tree032e5a3906f0522bfee40a001601788bc483b462
parentc3155b544a5065e8235508059c6512af6c46bd4d (diff)
simplify makefile for SMAUG benchmarks
-rw-r--r--.gitignore35
-rw-r--r--CMakeLists.txt6
-rw-r--r--Makefile13
-rw-r--r--mbw.spec63
4 files changed, 3 insertions, 114 deletions
diff --git a/.gitignore b/.gitignore
index d924fe3..3ab07f2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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)
diff --git a/Makefile b/Makefile
index 20e2773..c6d7215 100644
--- a/Makefile
+++ b/Makefile
@@ -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