Add specialize() to compile a CUDA kernel to the given arguments.