title: How to call a host function in a CUDA kernel?
body: <p>As the following error implies, calling a host function ('rand') is not allowed in kernel, and I wonder whether there is a solution for it if I do need to do that.</p>
  
  <pre><code>error: calling a host function("rand") from a __device__/__global__ function("xS_v1_cuda") is not allowed
  </code></pre>