NuSiF-Solver/EnhancedSolver/2D-mpi
2024-09-19 13:12:09 +02:00
..
src Remaining update 2024-09-19 13:12:09 +02:00
vis_files EnhancedSolver port complete 2024-07-27 02:19:56 +02:00
backstep.par EnhancedSolver port complete 2024-07-27 02:19:56 +02:00
canal.par EnhancedSolver port complete 2024-07-27 02:19:56 +02:00
config.mk Remaining update 2024-09-19 13:12:09 +02:00
dcavity.par EnhancedSolver port complete 2024-07-27 02:19:56 +02:00
include_CLANG.mk EnhancedSolver port complete 2024-07-27 02:19:56 +02:00
include_GCC.mk EnhancedSolver port complete 2024-07-27 02:19:56 +02:00
include_ICX.mk Remaining update 2024-09-19 13:12:09 +02:00
karman.par EnhancedSolver port complete 2024-07-27 02:19:56 +02:00
Makefile EnhancedSolver port complete 2024-07-27 02:19:56 +02:00
README.md EnhancedSolver port complete 2024-07-27 02:19:56 +02:00
residual.plot EnhancedSolver port complete 2024-07-27 02:19:56 +02:00
surface.plot EnhancedSolver port complete 2024-07-27 02:19:56 +02:00
vector.plot EnhancedSolver port complete 2024-07-27 02:19:56 +02:00

C source skeleton

Build

  1. Configure the toolchain 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.

  1. Build with:
make

You can build multiple toolchains 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=
  1. Clean up with:
make clean

to clean intermediate build results.

make distclean

to clean intermediate build results and binary.

  1. (Optional) Generate assembler:
make asm

The assembler files will also be located in the <TOOLCHAIN> directory.