Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libsharp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Reinecke
libsharp
Commits
6646b05f
Commit
6646b05f
authored
6 years ago
by
Martin Reinecke
Browse files
Options
Downloads
Patches
Plain Diff
polishing
parent
5c25c300
No related branches found
No related tags found
1 merge request
!16
Pol ispack
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
COMPILE
+25
-0
25 additions, 0 deletions
COMPILE
with
25 additions
and
0 deletions
COMPILE
0 → 100644
+
25
−
0
View file @
6646b05f
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment