error: calling a host function from a __device__/__global__ function is only all
extern "C"
__device__ float _random1()
{
int a;
float r;
a = rand() % 32767 ;
r = (a + 0.00 ) / 32767.00 ;
return r;
}
在Debug下,怎么在上面这个定义的device函数里调用rand()?或者其他的,只要能得到伪随机数,急求,帮帮忙