CUDA to HIP, SYCL, OpenCL, and Rust GPU migration tool — automatic source-code translator for porting CUDA C++ kernels to AMD ROCm HIP, Intel oneAPI SYCL, Khronos OpenCL, and Rust GPU (cust / rust-gpu)
//! SYCL backend.
usecrate::ir::TranslationUnit;usecrate::targets::TargetBackend;pubstructSyclBackend;implTargetBackend forSyclBackend{fnbanner(&self, _src:&str)-> String{"// Generated by decuda.\n\
// SYCL kernels replace CUDA kernels with parallel_for lambdas; this\n\
// output is a *starting point* and almost always requires manual\n\
// follow-up. Look for the `TODO(decuda)` markers in this file.\n\n\
#include <sycl/sycl.hpp>\n\n".to_string()}fnemit(&self, unit:&TranslationUnit)-> String{crate::emit::emit(crate::cli::Target::Sycl,self, unit)}}