我想确定int
CUDA内核中的最大值.不幸的是我找不到类似于std::numeric_limits
CUDA的东西.尝试使用该::std
函数会导致错误:
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)
有没有办法通过内核确定所需的值,还是应该将其作为参数传递?