- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have two code as write with forran, I can compile them with two command:
### ifort -O3 -o
and
### ifort -o
what is difference between two command? which of them is better used?
Hamid Mosaddeghi
### ifort -O3 -o
and
### ifort -o
what is difference between two command? which of them is better used?
Hamid Mosaddeghi
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
-O is optimization level. 3 is the highest optimization.
In the second case, you do not use a -O option, so it defaults to -O2
You'll have to compare runtimes and results to see if they are interchangeable. In general, -O2 is sufficient but sometimes you get a faster application with -O3. It depends on the code.
ron
In the second case, you do not use a -O option, so it defaults to -O2
You'll have to compare runtimes and results to see if they are interchangeable. In general, -O2 is sufficient but sometimes you get a faster application with -O3. It depends on the code.
ron
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
-O is optimization level. 3 is the highest optimization.
In the second case, you do not use a -O option, so it defaults to -O2
You'll have to compare runtimes and results to see if they are interchangeable. In general, -O2 is sufficient but sometimes you get a faster application with -O3. It depends on the code.
ron
In the second case, you do not use a -O option, so it defaults to -O2
You'll have to compare runtimes and results to see if they are interchangeable. In general, -O2 is sufficient but sometimes you get a faster application with -O3. It depends on the code.
ron

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page