[cuda kernels
] only compile them when initializing
#29133
Merged
cuda kernels
] only compile them when initializing
#29133