thrust functor: “too many resources requested for launch”
问题 I'm trying to implement something like this in CUDA: for each element p = { p if p >= floor z if p < floor Where floor and z are constants configured at the start of the test. I have attempted to implement it like so, but I get the error "too many resources requested for launch" A functor: struct floor_functor : thrust::unary_function <float, float> { const float floorLevel, floorVal; floor_functor(float _floorLevel, float _floorVal) : floorLevel(_floorLevel), floorVal(_floorVal){} __host__ _