INNER CODE UNIT · Rust
next
NVlabs/cuda-oxide · cuda-oxide/crates/cuda-artifact-finalizer/src/lib.rs:528
let next = round + 1;
for i in 0..values {
let mul_with = (i + 1) % values;
let add_with = (i + 3) % values;
let _ = writeln!(
body,
" %m{next}_{i} = fmul float %v{round}_{i}, %v{round}_{mul_with}"
);
let _ = writeln!(
body,
" %v{next}_{i} = fadd float %m{next}_{i}, %v{round}_{add_with}"
);
}
}
for i in 0..values {
let _ = writeln!(
body,
" store float %v{rounds}_{i}, float* %ptr{i}, align 4"