CUDA に __global__ 関数があります。それは自分自身を呼び出すことができますか?
これが私の例です:
__global__ void
force_create_empty_nodes (struct NODE *Nodes, int topnode, int bits, int no, int x, int y,
int z, struct topnode_data *TopNodes)
{
/// * Some code *///
force_create_empty_nodes <<<1, 8>>>(Nodes, topnode+1, bits+1, no+1,
x+1, y+1, z+1, TopNodes);
}
そして、私が受け取るエラーは次のとおりです。
error: kernel launch from __device__ or __global__ functions requires separate compilation mode
これが私のmakeコマンドです:
nvcc -c -arch compute_35 cudaForceNodes.cu -o obj/cudaForceNodes.o