[FEA] Refactor grid_1d
to allow usage in JITIFY kernels
#18216
Labels
feature request
New feature or request
grid_1d
to allow usage in JITIFY kernels
#18216
Is your feature request related to a problem? Please describe.
We have to write the global thread id calculation in many places within CUDF, specifically within JITIFY kernels.
Examples:
cudf/cpp/src/binaryop/jit/kernel.cu
Line 54 in 8e4408c
cudf/cpp/src/binaryop/jit/kernel.cu
Line 73 in 8e4408c
cudf/cpp/src/rolling/jit/kernel.cu
Line 54 in 8e4408c
cudf/cpp/src/transform/jit/kernel.cu
Line 53 in 8e4408c
This functionality already exists in the
grid_1d
class .cudf/cpp/include/cudf/detail/utilities/cuda.cuh
Line 40 in 8e4408c
We can't use it in JITIFY kernels because the headers it is accompanied by contain host code which is problematic for JITIFY.
Some of the problematic headers are:
Describe the solution you'd like
These headers are not required for it to function. We should refactor out the class into a separate device-only header.
The text was updated successfully, but these errors were encountered: