forked from moebiusband/NuSiF-Solver
BasicSolver
PoissonSolver
2D-mpi
src
Makefile
README.md
config.mk
include_CLANG.mk
include_GCC.mk
include_ICC.mk
poisson.par
surface.plot
2D-seq
.clang-format
.clang-tidy
.clangd
.gitignore
LICENSE
README.md
C source skeleton
Build
- Configure the tool chain and additional options in
config.mk
:
# Supported: GCC, CLANG, ICC
TAG ?= GCC
ENABLE_OPENMP ?= false
OPTIONS += -DARRAY_ALIGNMENT=64
#OPTIONS += -DVERBOSE_AFFINITY
#OPTIONS += -DVERBOSE_DATASIZE
#OPTIONS += -DVERBOSE_TIMER
The verbosity options enable detailed output about affinity settings, allocation sizes and timer resolution.
- Build with:
make
You can build multiple tool chains in the same directory, but notice that the Makefile is only acting on the one currently set.
Intermediate build results are located in the <TOOLCHAIN>
directory.
To output the executed commands use:
make Q=
- Clean up with:
make clean
to clean intermediate build results.
make distclean
to clean intermediate build results and binary.
- (Optional) Generate assembler:
make asm
The assembler files will also be located in the <TOOLCHAIN>
directory.