about SIMD code

about SIMD code

Just write some SIMD code instead of making the compiler generate the SIMD code automatically, but how do I enable the icc compiler to compile with the code?

3 帖子 / 0 全新
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项

Write inline SSE assembly and compile it with Intel compiler.

If you don't want to go down the path of writing in assembly language, there is also same kind of wrapper called "intrinsics" that looks and feels like a function call but are translated directly to assembly. A description is given in this article. For a recent example with AVX2, you might be interested in my blog.

发表评论

登录添加评论。还不是成员?立即加入