decuda 0.1.1

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)
Documentation
//! SYCL backend.

use crate::ir::TranslationUnit;
use crate::targets::TargetBackend;

pub struct SyclBackend;

impl TargetBackend for SyclBackend {
    fn banner(&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()
    }

    fn emit(&self, unit: &TranslationUnit) -> String {
        crate::emit::emit(crate::cli::Target::Sycl, self, unit)
    }
}