- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hello,
We are trying to offload the main computations to the MIC, which includes FFT via the MKL and its fftw wrappers.
We are now running into this compilation error:
function "fftw_execute_dft" called in offload region must have been declared with compatible "target" attribute
Is this a bug, or is this intended ? Or do we link with the wrong library here ?
Any help appreciated.
コピーされたリンク
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
It may help if you wrap [#include "fftw3.h"] between [#pragma offload_attribute(push) target(mic)] and [#pragma offload_attribute(pop)]
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hello,
Thank you for your suggestion. There is a typo in your answer, the correct pragma is [#pragma offload_attribute(push target(mic))].
Compilation now works, but at runtime I get this error:
Hello,
Thank you for your suggestion.
Compilation now works, but at runtime I get this error:
On the remote process, dlopen() failed. The error message sent back from the sink is /tmp/coi_procs/1/6438/load_lib/iccoutNOEXQX: undefined symbol: fftw_execute_dft
offload error: cannot load library to the device 0 (error code 20)
On the sink, dlopen() returned NULL. The result of dlerror() is "/tmp/coi_procs/1/6438/load_lib/iccoutNOEXQX: undefined symbol: fftw_execute_dft"
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Did you use -mkl option on the command line.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Using -mkl option solved the problem. Many thanks.
