As arity cannot be reflected upon using the CUDA API, the arity is explicitly set during the GpuExecutor::GetKernel initialization process.
| 47 | // As arity cannot be reflected upon using the CUDA API, the arity is |
| 48 | // explicitly set during the GpuExecutor::GetKernel initialization process. |
| 49 | void set_arity(unsigned arity) { arity_ = arity; } |
| 50 | unsigned Arity() const override { return arity_; } |
| 51 | |
| 52 | // Returns the GpuFunctionHandle value for passing to the CUDA API. |