使用MKL和FFTW,编译能够勉强通过,会出现一些warnning。但是运行出现以下提示:
Allocate array for input data
On the sink, dlopen() returned NULL. The result of dlerror() is "/var/volatile/tmp/coi_procs/1/4793/load_lib/iccoutU3wQJi: undefined symbol: output"
On the remote process, dlopen() failed. The error message sent back from the sink is /var/volatile/tmp/coi_procs/1/4793/load_lib/iccoutU3wQJi: undefined symbol: output
offload error: cannot load library to the device 0 (error code 20)
请问是什么原因呢?
附上warnning信:
ftw.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(9): warning #2637: static function "output" treated as extern because it was referenced but not defined
__attribute__((target(mic)))static void output(fftwf_complex *x,int N,int H,fftwf_complex *x_host);
^
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);
^
fftw.c(9): warning #2637: *MIC* static function "output" treated as extern because it was referenced but not defined
__attribute__((target(mic)))static void output(fftwf_complex *x,int N,int H,fftwf_complex *x_host);
^