MD-Bench/README.md

28 lines
1.1 KiB
Markdown
Raw Normal View History

2020-07-23 16:41:14 +02:00
# MD-Bench
2020-08-17 16:07:58 +02:00
2020-08-19 10:23:25 +02:00
A simple, sequential C implementation of the [Mantevo miniMD](https://github.com/Mantevo/miniMD) benchmark in less than 1000 LOC.
2020-08-17 16:07:58 +02:00
## Build
2021-03-24 08:43:44 +01:00
1. Open `config.mk` and edit the `TAG` value according to the tool chain used. Currently supported is GCC, CLANG (LLVM), and ICC (Intel).
2. Change `DATA_LAYOUT` and `DATA_TYPE` if desired in config.mk.
3. Open and adapt the compiler flags in `<include_<TOOLCHAIN>.mk`, e.g. in `include_ICC.mk` for the Intel tool chain.
4. Build the binary calling `make`.
2020-08-17 16:07:58 +02:00
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
2020-09-07 07:42:45 +02:00
Currently all settings apart from the options described below are hard-coded in `main.c`.
2020-08-17 16:09:40 +02:00
## Run the benchmark
2020-08-19 10:04:34 +02:00
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
```