I would like to determine the maximum int value in the CUDA core. Unfortunately, I cannot find anything like std::numeric_limits for CUDA. Attempting to use the ::std function results in an error:
error : calling a __host__ function("std::numeric_limits<int> ::max") from a __global__ function("xyz_kernel") is not allowed C:\cuda.cu(153) (col. 10)
Is there a way to determine the desired value using the kernel or just pass it as a parameter?
source share