pub const CUDA_MAKEFILE_TEMPLATE: &str = r#"# Auto-generated by LOGOS codegen_cuda.
# Builds the single-file CUDA program with nvcc. Override ARCH for other GPUs.
ARCH ?= sm_86
NVCC ?= nvcc
logos_cuda: {KERNEL_FILE}
$(NVCC) -O2 -arch=$(ARCH) -fmad=false $< -o $@
.PHONY: clean
clean:
rm -f logos_cuda
"#;Expand description
Makefile glue: builds the single-file CUDA program with nvcc for the Ampere
(sm_86, the RTX 3060 class) target. {KERNEL_FILE} is substituted with the
emitted source name.