FFTW使用遇错。求大神指导,感谢!

hie_mey 2014-03-08 12:03:36
使用Intel众核协处理器MIC调用FFTW,编译能够通过,只是有几个warnning。但是运行时候出现以下提示:
[root@mic-server ~]# ./fftw
Allocate array for input data
On the remote process, dlopen() failed. The error message sent back from the sink is /var/volatile/tmp/coi_procs/1/4705/load_lib/iccout67t7X3: undefined symbol: output
On the sink, dlopen() returned NULL. The result of dlerror() is "/var/volatile/tmp/coi_procs/1/4705/load_lib/iccout67t7X3: undefined symbol: output"
offload error: cannot load library to the device 0 (error code 20)

请问是什么原因呢?难道是init,very 和output三个函数没有定义?那么在fftw中应该怎样编写这3个函数呢?应该主要是调用FFTW库中的函数吧,自己编写的是不是不多?
附上我的warnning信息:
fftw.c(76): warning #127: expected a statement
}
^

fftw.c(7): warning #2637: static function "init" treated as extern because it was referenced but not defined
__attribute__((target(mic)))static void init(fftwf_complex *x,int N,int H,fftwf_complex *x_host);
^

fftw.c(8): warning #2637: static function "verify" treated as extern because it was referenced but not defined
__attribute__((target(mic)))static int verify(fftwf_complex *x,int N,int H);
^

fftw.c(76): warning #127: *MIC* expected a statement
}
^

fftw.c(7): warning #2637: *MIC* static function "init" treated as extern because it was referenced but not defined
__attribute__((target(mic)))static void init(fftwf_complex *x,int N,int H,fftwf_complex *x_host);
^

fftw.c(8): warning #2637: *MIC* static function "verify" treated as extern because it was referenced but not defined
__attribute__((target(mic)))static int verify(fftwf_complex *x,int N,int H);
...全文
513 回复 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

567

社区成员

发帖
与我相关
我的任务
社区描述
英特尔® 边缘计算,聚焦于边缘计算、AI、IoT等领域,为开发者提供丰富的开发资源、创新技术、解决方案与行业活动。
社区管理员
  • 英特尔技术社区
  • shere_lin
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧