#pragma once #include #if AT_USE_JITERATOR() #include #include #include #include #include namespace at { namespace cuda { TORCH_CUDA_CPP_API c10::SmallVector CompileAndLaunchKernel( const std::string& code_string, const std::string& kernel_name, const int num_outputs, const c10::SmallVector& tensors, const c10::SmallVector& extra_args, bool return_by_ref); }} // namespace at::cuda #else namespace at { namespace cuda { TORCH_CUDA_CPP_API c10::SmallVector CompileAndLaunchKernel( const std::string& code_string, const std::string& kernel_name, const int num_outputs, const c10::SmallVector& tensors, const c10::SmallVector& extra_args, bool return_by_ref) { TORCH_CHECK(false, "Jiterator is not supported"); } }} // namespace at::cuda #endif // AT_USE_JITERATOR()