静的メンバーを次のタイプに追加しようとしています。
struct mostRightCornerPred
{
__host__ __device__
static int numIterations;
bool operator()(const long long first,const long long seconds) const
{
return true;
}
};
しかし、私はエラーが発生し続けます:
1>c:\users\igal\desktop\pj1712 固定マップ res\graph\types.h(21): エラー : 属性 "__host__" はここでは適用されません 1>c:\users\igal\desktop\pj1712 固定マップ res\graph\types.h(21): エラー : データ メンバーのメモリ修飾子は許可されていません
私の推測では、CUDA はこのメンバーを参照できません。どうすれば修正できますか?