Skip to main content

We strongly recommend all our users start with -O3 -xHost -ipo for both ifort 11 and ifort 12. If there are particular floating point transformations enabled by O3 that affect the precision of some of your computations, you can turn those specifically off with -fp-model precise -fp-model except (or, more drastically, -fp-model strict) while retaining the other optimizations O3 enables, such as loop blocking for cache, loop fusion and unrolling, and memory access optimizations.

I'd advise trying the floating point model stuff on individual files and finding out where it makes a difference, rather than turning it off globally; it can be a ~15% speed bump, and you want to be able to keep that where it doesn't affect your calculations. If you're not sure where the precision is being affected, you can play with turning on and off the floating point model flags for those files, or playing with rounding modes.

We recently gave a short talk to our users about optimization flags, focusing on the gnuGNU and intelIntel compilers for x86; you can see the slides from that talk here.

Incidentally, while we're talking about choosing optimization flags for your code, every now and then it's also worth looking at the output of a -vec-reportvectorization report to see where the compiler attempted to vectorize a loop and couldn't; sometimescouldn't. Sometimes there are small changes you can make to your loop which can result in vectorization being possible (which can be a 4x speedup). Similarly for the, see -qopt-report for information on more general optimization reporting (-opt-report, for older versions).

We strongly recommend all our users start with -O3 -xHost -ipo for both ifort 11 and ifort 12. If there are particular floating point transformations enabled by O3 that affect the precision of some of your computations, you can turn those specifically off with -fp-model precise -fp-model except (or, more drastically, -fp-model strict) while retaining the other optimizations O3 enables, such as loop blocking for cache, loop fusion and unrolling, and memory access optimizations.

I'd advise trying the floating point model stuff on individual files and finding out where it makes a difference, rather than turning it off globally; it can be a ~15% speed bump, and you want to be able to keep that where it doesn't affect your calculations. If you're not sure where the precision is being affected, you can play with turning on and off the floating point model flags for those files, or playing with rounding modes.

We recently gave a short talk to our users about optimization flags, focusing on the gnu and intel compilers for x86; you can see the slides from that talk here.

Incidentally, while we're talking about choosing optimization flags for your code, every now and then it's also worth looking at the output of -vec-report to see where the compiler attempted to vectorize a loop and couldn't; sometimes there are small changes you can make to your loop which can result in vectorization being possible (which can be a 4x speedup). Similarly for the more general -opt-report.

We strongly recommend all our users start with -O3 -xHost -ipo for both ifort 11 and ifort 12. If there are particular floating point transformations enabled by O3 that affect the precision of some of your computations, you can turn those specifically off with -fp-model precise -fp-model except (or, more drastically, -fp-model strict) while retaining the other optimizations O3 enables, such as loop blocking for cache, loop fusion and unrolling, and memory access optimizations.

I'd advise trying the floating point model stuff on individual files and finding out where it makes a difference, rather than turning it off globally; it can be a ~15% speed bump, and you want to be able to keep that where it doesn't affect your calculations. If you're not sure where the precision is being affected, you can play with turning on and off the floating point model flags for those files, or playing with rounding modes.

We recently gave a short talk to our users about optimization flags, focusing on the GNU and Intel compilers for x86; you can see the slides from that talk here.

Incidentally, while we're talking about choosing optimization flags for your code, every now and then it's also worth looking at the output of a vectorization report to see where the compiler attempted to vectorize a loop and couldn't. Sometimes there are small changes you can make to your loop which can result in vectorization being possible (which can be a 4x speedup). Similarly, see -qopt-report for information on more general optimization reporting (-opt-report, for older versions).

We strongly recommend all our users start with -O3 -xHost -ipo-O3 -xHost -ipo for both ifort 11 and ifort 12. If there are particular floating point transformations enabled by O3 that affect the precision of some of your computations, you can turn those specifically off with -fpmodelfp-model precise -fpmodelfp-model except (or, more drastically, -fpmodelfp-model strict) while retaining the other optimizations O3 enables, such as loop blocking for cache, loop fusion and unrolling, and memory access optimizations.

I'd advise trying the floating point model stuff on individual files and finding out where it makes a difference, rather than turnturning it off globally; it can be a ~15% speed bump, and you want to be able to keep that where it doesn't affect your calculations. If you're not sure where the precision is being affected, you can play with turning on and off the floating point model flags for those files, or playing with rounding modes.

We recently gave a short talk to our users about optimization flags, focusing on the gnu and intel compilers for x86; you can see the slides from that talk here.

Incidentally, while we're talking about choosing optimization flags for your code, every now and then it's also worth looking at the output of -vec-report to see where the compiler attempted to vectorize a loop and couldn't; sometimes there are small changes you can make to your loop which can result in vectorization being possible (which can be a 4x speedup). Similarly for the more general -opt-report.

We strongly recommend all our users start with -O3 -xHost -ipo for both ifort 11 and ifort 12. If there are particular floating point transformations enabled by O3 that affect the precision of some of your computations, you can turn those specifically off with -fpmodel precise -fpmodel except (or, more drastically, -fpmodel strict) while retaining the other optimizations O3 enables, such as loop blocking for cache, loop fusion and unrolling, and memory access optimizations.

I'd advise trying the floating point model stuff on individual files and finding out where it makes a difference, rather than turn it off globally; it can be a ~15% speed bump, and you want to be able to keep that where it doesn't affect your calculations. If you're not sure where the precision is being affected, you can play with turning on and off the floating point model flags for those files, or playing with rounding modes.

We recently gave a short talk to our users about optimization flags, focusing on the gnu and intel compilers for x86; you can see the slides from that talk here.

Incidentally, while we're talking about choosing optimization flags for your code, every now and then it's also worth looking at the output of -vec-report to see where the compiler attempted to vectorize a loop and couldn't; sometimes there are small changes you can make to your loop which can result in vectorization being possible (which can be a 4x speedup). Similarly for the more general -opt-report.

We strongly recommend all our users start with -O3 -xHost -ipo for both ifort 11 and ifort 12. If there are particular floating point transformations enabled by O3 that affect the precision of some of your computations, you can turn those specifically off with -fp-model precise -fp-model except (or, more drastically, -fp-model strict) while retaining the other optimizations O3 enables, such as loop blocking for cache, loop fusion and unrolling, and memory access optimizations.

I'd advise trying the floating point model stuff on individual files and finding out where it makes a difference, rather than turning it off globally; it can be a ~15% speed bump, and you want to be able to keep that where it doesn't affect your calculations. If you're not sure where the precision is being affected, you can play with turning on and off the floating point model flags for those files, or playing with rounding modes.

We recently gave a short talk to our users about optimization flags, focusing on the gnu and intel compilers for x86; you can see the slides from that talk here.

Incidentally, while we're talking about choosing optimization flags for your code, every now and then it's also worth looking at the output of -vec-report to see where the compiler attempted to vectorize a loop and couldn't; sometimes there are small changes you can make to your loop which can result in vectorization being possible (which can be a 4x speedup). Similarly for the more general -opt-report.

edited body
Source Link
user389
user389

We strongly recommend all our users start with -O3 -xHost -ipo for both ifort 11 and ifort 12. If there are particular floating point transformations enabled by O3 that affect the precision of some of your computations, you can turn those specifically off with -fpmodel precise -fpmodel except (or, more drastically, -fpmodel strict) while retaining the other optimizations O3 enables, such as loop blocking for cache, loop fusion and unrolling, and memory access optimizations.

I'd advise trying the floating point model stuff on individual files and finding out where it makes a difference, rather than turn it off globally; it can be a ~15% speed bump, and you want to be able to keep that where it doesn't affect your calculations. If you're not sure where the precision is being effectedaffected, you can play with turning on and off the floating point model flags for those files, or playing with rounding modes.

We recently gave a short talk to our users about optimization flags, focusing on the gnu and intel compilers for x86; you can see the slides from that talk here.

Incidentally, while we're talking about choosing optimization flags for your code, every now and then it's also worth looking at the output of -vec-report to see where the compiler attempted to vectorize a loop and couldn't; sometimes there are small changes you can make to your loop which can result in vectorization being possible (which can be a 4x speedup). Similarly for the more general -opt-report.

We strongly recommend all our users start with -O3 -xHost -ipo for both ifort 11 and ifort 12. If there are particular floating point transformations enabled by O3 that affect the precision of some of your computations, you can turn those specifically off with -fpmodel precise -fpmodel except (or, more drastically, -fpmodel strict) while retaining the other optimizations O3 enables, such as loop blocking for cache, loop fusion and unrolling, and memory access optimizations.

I'd advise trying the floating point model stuff on individual files and finding out where it makes a difference, rather than turn it off globally; it can be a ~15% speed bump, and you want to be able to keep that where it doesn't affect your calculations. If you're not sure where the precision is being effected, you can play with turning on and off the floating point model flags for those files, or playing with rounding modes.

We recently gave a short talk to our users about optimization flags, focusing on the gnu and intel compilers for x86; you can see the slides from that talk here.

Incidentally, while we're talking about choosing optimization flags for your code, every now and then it's also worth looking at the output of -vec-report to see where the compiler attempted to vectorize a loop and couldn't; sometimes there are small changes you can make to your loop which can result in vectorization being possible (which can be a 4x speedup). Similarly for the more general -opt-report.

We strongly recommend all our users start with -O3 -xHost -ipo for both ifort 11 and ifort 12. If there are particular floating point transformations enabled by O3 that affect the precision of some of your computations, you can turn those specifically off with -fpmodel precise -fpmodel except (or, more drastically, -fpmodel strict) while retaining the other optimizations O3 enables, such as loop blocking for cache, loop fusion and unrolling, and memory access optimizations.

I'd advise trying the floating point model stuff on individual files and finding out where it makes a difference, rather than turn it off globally; it can be a ~15% speed bump, and you want to be able to keep that where it doesn't affect your calculations. If you're not sure where the precision is being affected, you can play with turning on and off the floating point model flags for those files, or playing with rounding modes.

We recently gave a short talk to our users about optimization flags, focusing on the gnu and intel compilers for x86; you can see the slides from that talk here.

Incidentally, while we're talking about choosing optimization flags for your code, every now and then it's also worth looking at the output of -vec-report to see where the compiler attempted to vectorize a loop and couldn't; sometimes there are small changes you can make to your loop which can result in vectorization being possible (which can be a 4x speedup). Similarly for the more general -opt-report.

Source Link
user389
user389
Loading