- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The fastest and simplest combination I found is -Ofast -static. And I also tried -mtune=haswell and Profile Guided Optimization, but it didn't improve the computation time.
Is there anything else I can do in terms of compilation options?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When the executable is to be run on the same system as the build is performed
-xHost (Linux/macOS)
/QxHost (Windows)
Jim Dempsey
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When the executable is to be run on the same system as the build is performed
-xHost (Linux/macOS)
/QxHost (Windows)
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can try -fast as a simple shortcut - this sets several options that usually (but not always) improve computation performance. Be aware that this implies -xHost which optimizes for the CPU you compiled on. If you'll be running the program elsewhere, don't use either of these.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page