title: Is there a CUDA equivalent to std::numeric_limits?
body: <p>I would like to determine the maximum <code>int</code> value in a CUDA kernel. Unfortunately I can't find anything similar to <code>std::numeric_limits</code> for CUDA. Trying to use the <code>::std</code> function results in a error:</p>
  
  <p><code>error : calling a __host__ function("std::numeric_limits&lt;int&gt; ::max") from a __global__ function("xyz_kernel") is not allowed  C:\cuda.cu(153) (col. 10)</code></p>
  
  <p>Is there a way to determine the desired value from withing a kernel, or should I just pass it as a parameter?</p>