2015年1月20日 星期二

3 Easy Ways to Target Vectorization Tech with C++ Compiler

3 Easy Ways to Target Vectorization Tech with C++ CompilerShare your comment!

Bookmark and Share

The Intel C++ compiler can easily target different processors. To really know what’s happening, you need to look at the assembly code. But before you can do that, you have to make sure you configure the compiler correctly. In this blog, Jeff Cogswell talks about the three ways you can target vectorization capabilities all with the flick of a switch.

When trying to get the best vectorization possible, the first thing we need to do is get the settings right in compiling our programs. The Intel C++ compiler can target many different versions of Intel processors, and you don’t need to actually be running on those processors when you compile your code. For example, even though you might not have a processor that supports AVX-512, you can still compile an application that will only run on an AVX-512. Or you can compile an application that provides more than one set of code packed into the individual executable file, including code that targets AVX-512 and code the targets other modern processors.

沒有留言: