Skip to main content

codegen_program_cuda

Function codegen_program_cuda 

Source
pub fn codegen_program_cuda(
    program: &CompiledProgram,
    oracle_c: &str,
) -> Result<CudaArtifact, CudaLowerError>
Expand description

Emit program as a single-file CUDA program. oracle_c is the self-contained C translation of the SAME program (from crate::compile::compile_to_c_stepped, which is crate::compile::compile_to_c’s C for a program with no tasks); its program-region compute is lifted onto the device. Returns CudaLowerError::Unsupported if the program leaves the scalar fragment (op-level or value-escape).