From 6646b05f535eba544f781de9cec6ed90825fa5a5 Mon Sep 17 00:00:00 2001
From: Martin Reinecke <martin@mpa-garching.mpg.de>
Date: Fri, 11 Jan 2019 11:18:07 +0100
Subject: [PATCH] polishing

---
 COMPILE | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 COMPILE

diff --git a/COMPILE b/COMPILE
new file mode 100644
index 0000000..8823bd3
--- /dev/null
+++ b/COMPILE
@@ -0,0 +1,25 @@
+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
-- 
GitLab