从CUDA中的另一个内核启动内核

时间:2016-03-02 08:18:10

标签: cuda

我打算从CUDA中的另一个内核启动内核。我正在从主机调用父函数。此设备函数parent将调用设备函数child。这个子函数将计算加法。这会提示错误。

writeDataWithLengthPrefix(getHeaderBytes(currentResponse));

我的GPU是NVIDIA GeForce 940M。计算能力是5.0。我怎样才能纠正。

calling a __global__ function("child") from a __global__ function("parent") is only allowed on the compute_35 architecture or above

0 个答案:

没有答案
相关问题