NuSiF-Solver/PoissonSolver/2D-mpi/README.md

49 lines
962 B
Markdown
Raw Normal View History

2023-02-05 07:34:23 +01:00
# C source skeleton
## Build
2024-07-08 09:52:11 +02:00
1. Configure the tool chain and additional options in `config.mk`:
2023-02-05 07:34:23 +01:00
```
# 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.
2. Build with:
```
make
```
2024-07-08 09:52:11 +02:00
You can build multiple tool chains in the same directory, but notice that the Makefile is only acting on the one currently set.
2023-02-05 07:34:23 +01:00
Intermediate build results are located in the `<TOOLCHAIN>` directory.
To output the executed commands use:
```
make Q=
```
3. Clean up with:
```
make clean
```
to clean intermediate build results.
```
make distclean
```
to clean intermediate build results and binary.
4. (Optional) Generate assembler:
```
make asm
```
The assembler files will also be located in the `<TOOLCHAIN>` directory.