简体   繁体   English

icc和ispc的向量化有什么区别?

[英]What is the difference between the vectorization of icc and that of ispc?

Both Intel C/C++ Compiler and Intel SPMD Program Compiler can generate vectorized code. 英特尔C / C ++编译器和英特尔SPMD程序编译器均可生成矢量化代码。 My question is, is there any possible reason I should use ispc for code vectorization provided that my icc also can generate vectorized code? 我的问题是,如果我的icc也可以生成矢量化的代码,我是否应该使用ispc进行代码矢量化?

Well, While Intel C Compiler / C++ Compiler discriminate towards Intel made CPU's the ISPC is not (I think it can also generate ARM code). 好吧,尽管Intel C编译器/ C ++编译器区别于Intel制造的CPU,但ISPC却不是(我认为它也可以生成ARM代码)。

So yes, if you're having hard time with ICC CPU dispatcher on AMD CPU's you should use ISPC. 因此,是的,如果您在AMD CPU上无法与ICC CPU调度程序配合使用,则应使用ISPC。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM