- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have two questions about -fast option.
1- Although , in my code, returns around %20 performance increase -fast option makes compile time really long. Usually around 20 minutes.
I can live with that but is it normal? Is there any tricks at the coding level to decrease compile time?
2- In my project I am trying to use DISLIN package which requires X11 and OpenGL libraries. I have successfully linked using
-L/usr/lib64/ -lX11 -lGL .
With this link I can compile &run my code if I use -O3 optimization level. However if I try to use -fast option compiler returns with
cannot find -lX11. I don't want to sacrifice with -fast option but also want to use DISLIN package.
Regards.
Link Copied
- 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
Regarding (2): Since -fast implies too "-static", the linker will look for the static version of the X11 library ( libX1.a); very likely you only have the shared library libX11.so and thus you see the link failure.
As Steve mentioned already, -fast is an alias for a set of options. See the compiler manual for the specific details for your compiler. For the latest one (13.0) it is "-ipo -O3 -no-prec-div -static -XHost". You can use these switches explicitly without "-static" then

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