Skip to content
Snippets Groups Projects
Commit 6646b05f authored by Martin Reinecke's avatar Martin Reinecke
Browse files

polishing

parent 5c25c300
No related branches found
No related tags found
1 merge request!16Pol ispack
COMPILE 0 → 100644
Libsharp is configured, compiled and installed using GNU autotools.
The most complicated step for the user is selecting the appropriate compiler
flags (and in some cases the compiler).
Here are a few (hopefully helpful) examples:
GCC, OpenMP, portable executable:
CFLAGS="-std=c99 -O3 -ffast-math -flto -fopenmp" ./configure
GCC, OpenMP, specific optimization for the target CPU:
CFLAGS="-std=c99 -O3 -march=native -ffast-math -flto -fopenmp" ./configure
GCC, no OpenMP, specific optimization for the target CPU:
CFLAGS="-std=c99 -O3 -march=native -ffast-math -flto" ./configure
Clang:
CC=clang CFLAGS="-std=c99 -O3 -march=native -ffast-math -flto -fopenmp" ./configure
MPI support:
CC=mpicc CFLAGS="-DUSE_MPI -std=c99 -O3 -march=native -ffast-math -flto" ./configure
Additional GCC flags for pedantic warning and debugging:
-Wall -Wextra -Wshadow -Wmissing-prototypes -Wfatal-errors -pedantic -g
-fsanitize=address
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment