是否可以将 Cilk Plus 与 MinGW-w64 (x86_64-4.9.2-posix-sjlj-rt_v3-rev0)一起使用?
当我不使用-fcilkplus
选项时,编译器会给我一个错误"-fcilkplus must be enabled to use '_Cilk_spawn'"
- 显然它会识别扩展关键字。另一方面,编译器安装文件夹中没有'cilk.h'
的任何痕迹,也没有任何其他文件包含"cilk"
。
如果使用选项-fcilkplus -lcilkrts
进行编译,则会出现错误:
"libcilkrts.spec: No such file or directory"
。
从 Code :: Blocks 编译,错误日志:
undefined reference to `__cilkrts_enter_frame_1'|
undefined reference to `__cilkrts_save_fp_ctrl_state'|
undefined reference to `__cilkrts_save_fp_ctrl_state'|
undefined reference to `__cilkrts_sync'|
undefined reference to `__cilkrts_rethrow'|
undefined reference to `__cilkrts_save_fp_ctrl_state'|
undefined reference to `__cilkrts_sync'|
undefined reference to `__cilkrts_rethrow'|
undefined reference to `__cilkrts_leave_frame'|
undefined reference to `__cilkrts_save_fp_ctrl_state'|
undefined reference to `__cilkrts_sync'|
undefined reference to `__cilkrts_rethrow'|
undefined reference to `__cilkrts_leave_frame'|
undefined reference to `__cilkrts_enter_frame_fast_1'|
undefined reference to `__cilkrts_leave_frame'|
||=== Build failed: 15 error(s), 2 warning(s) (0 minute(s), 1 second(s)) ===|
MinGW和TDM-MinGW都使用较旧的gcc版本(4.8系列),因此他们不会识别cilk
个关键字。
答案 0 :(得分:0)
似乎Windows上的MinGW不支持Intel Cilk。