Skip main navigation (Press Enter).
Log in
Toggle navigation
Log in
Community
Topic Groups
Champions
Directory
Program overview
Rising Champions
User Groups
Directory
Benefits
Events
Dev Days
Conference
Community events
User Groups events
All TechXchange events
Participate
TechXchange Group
Welcome Corner
Blogging
Member directory
Community leaders
Resources
IBM TechXchange
Community
Conference
Events
IBM Developer
IBM Training
IBM TechXchange
Community
Conference
Events
IBM Developer
IBM Training
C/C++ and Fortran
×
C/C++ and Fortran
Connect, learn, share, and engage with IBM Power.
Group Home
Threads
302
Blogs
328
Events
0
Library
1
Members
217
View Only
Share
Share on LinkedIn
Share on X
Share on Facebook
Back to Blog List
Optimize the performance of your code containing loops by using -qassert
By
Archive User
posted
Tue February 25, 2014 02:41 AM
Like
Originally posted by:
ChristineLi
If your code contains a large number of loops, you can use option -qassert=minitercnt=
n1
and -qassert=maxitercnt=
n2
provided in XL Fortran V14.1 to specify the expected minimum and maximum iteration counts of the loops in the program. The minitercnt and maxitercnt values are not required to be accurate since the values only affect performance, never correctness. The values will be provided to the optimizer.
n1
and
n2
must be positive integers. If you specify the two suboptions at the same time, the values must follow the rule minitercnt <= itercnt <= maxitercnt. Otherwise, messages are issued to indicate that the values are inconsistent and the inconsistent value is ignored.
You can also use the
ASSERT
directive which can overrides the -qassert compiler option for the DO loop on which the ASSERT directive is specified.
For detailed information, see
-qassert
.
0 comments
0 views
Permalink
Copy
Powered by Higher Logic