id like to use the copy_if predict, with some parameter. I’ve implemented the predict as a struct, like in the example. i.e a struct with the () operator. I’ve tried defining a static pointer in the same cu file, and allocating to it with cudaMalloc, and then using cuda malloc to copy the parameter value. This doesn’t work because the device operator() inside the predict struct has no access to this pointer.
What is the correct way?