使用英特尔并行工作室与 cilk_spawn 的技术问题
我与 Intel Parallel Studio 2011 一起工作,我包含了:
#include <cilk/cilk.h>
这似乎包含得很好。
然后我尝试使用命令:
cilk_spawn (and also _Cilk_spawn)
并收到以下错误:
Error: identifier "_Cilk_spawn" is undefined.
有谁知道如何解决这个问题?
I work with intel parallel studio 2011 and I included:
#include <cilk/cilk.h>
which seemed to be included just fine.
Then I tried using the command:
cilk_spawn (and also _Cilk_spawn)
and got the following error:
Error: identifier "_Cilk_spawn" is undefined.
Does anyone know how to solve this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您在评论中提到的“文本视图出现一些神秘问题,看起来像是语法错误”可能意味着 Microsoft 的 Intellisense 无法识别 Cilk 关键字,这是 Intel 对 C/C++ 的扩展。
我无法找到任何修复或解决方法,因此建议您询问 英特尔 Cilk Plus 论坛;也许英特尔并行工作室可以解决这个问题。另请参阅a向 Microsoft 报告错误。
"Some mysterious problem with the text view which makes look like it is a syntax error" which you refer to in the comment probably means that Microsoft's Intellisense cannot recognize Cilk keywords, which are Intel's extension to C/C++.
I was unable to find any fix or workaround for that, so suggest you ask at Intel's Cilk Plus forum; maybe Intel Parallel Studio can take care of it. Also see a bug report to Microsoft.