src | ||
util | ||
.gitignore | ||
config.mk | ||
include_CLANG.mk | ||
include_GCC.mk | ||
include_ICC.mk | ||
LICENSE | ||
Makefile | ||
README.md |
MD-Bench
A simple, sequential C implementation of the Mantevo miniMD benchmark in less than 1000 LOC.
Build
- Open
config.mk
and edit theTAG
value according to the tool chain used. Currently supported is GCC, CLANG (LLVM), and ICC (Intel). - Change
DATA_LAYOUT
andDATA_TYPE
if desired in config.mk. - Open and adapt the compiler flags in
<include_<TOOLCHAIN>.mk
, e.g. ininclude_ICC.mk
for the Intel tool chain. - Build the binary calling
make
.
You can clean intermediate build results with make clean
, and all build results with make distclean
.
You have to call make clean
before make
if you changed the build settings.
Configuration
Currently all settings apart from the options described below are hard-coded in main.c
.
Run the benchmark
Without any options 200 steps with system size 32x32x32 is used.
The default can be changed using the following options:
-n / --nsteps <int>: set number of timesteps for simulation
-nx/-ny/-nz <int>: set linear dimension of systembox in x/y/z direction