//Header file A.h
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
class A
{
__host__ __device__ void move();
}
//cu file A.cu
#include "A.h"
{
__host__ __device__ void A::move()
{
...
}
}
ファイルで定義されたメソッドA.cu
を別のファイルから呼び出すと.cu
、次のエラーが発生します。
External calls are not supported (found non-inlined call to ...),
sm_10
コンパイルオプションを使用しています。