インテル® C++ コンパイラー 15.0 ユーザー・リファレンス・ガイド
target 領域から呼び出せる関数のデバイス固有バージョンを作成します。このプラグマは、インテル® MIC アーキテクチャーにのみ適用されます。
#pragma omp declare target |
function-definition-or-declaration
#pragma omp end declare target |
なし。
宣言された関数を target 領域で使用する例 |
---|
#pragma omp declare target int FirstFunction(int a); int SecondFunction(int a); #pragma omp end declare target ... #pragma omp target { ... x = FirstFunction(a) * SecondFunction(a); ... } |