- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
In linux, I use "-xP -r8 -132 -fPIC -g -w90 -w -ipo -w95-static-libcxa -O3 " to compile/optimize my code.
However, I found that when I tried to run my code compiled under windows, it seems torun slower, although the processor used is similar.
I also found that the default option for linux and windows are different, is that so? For e.g., check bound is enabled by default in windows but it is disabled in linux.
May I know what's the equavalent options for -xP and -ipo? I can't seem to be similar option in windows.
Thank you very much.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the Compiler Options section of the on-disk documentation is a table giving correspondences between Linux and Windows options. -fPIC and -static-libcxa do not apply on Windows, the others have corresponding options. (-xP is /QxP, -r8 is /real_size:64, -132 is /extend_source:132, etc.) Most of these have settings in the IDE.
Since you are seeing array bounds messages, that means you're building a Debug configuration which has optimizations disabled. Select a Release configuration and you will get -O2 optimization by default.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Steve! I found the options comparison in the help files. However, for -xP, I saw that its equivalent is /QaxP, instead of /QxP which you wrote.
Anyway, I tried both and both seem correct during compilation. However, during linking, it says option not recognize. May I know what's wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I don't really understand what you are talking about. I did my compilation under Vs2003 with ifort 32-bit.
I simply add under command line, additional options in the linking property
/MACHINE:I386 /Qipo /QxP (or /QaxP)
During linking I got:
Link: warning ignoring_unknown_option1: ignoring unknown option '/QxP' (or QaxP)
Am I not supposed to do it this way?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you want, you can add these under Fortran > Command line > Additional Options, though /QxP and /QaxP can be specified as:
Optimization > Require Intel Processor Extensions > Intel Pentium 4 Processor with Streaming SIMD Extensions 3
(/QxP)
or:
Optimization > Use Intel Processor Extensions > Intel Pentium 4 Processor with Streaming SIMD Extensions 3
(/QaxP)
At present, you have to add /Qipo to Additional Options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
![](/skins/images/E2C6D832B61BAAAA0B8D2A8E57BC7B01/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page