add c++17 flags (#452)

This commit is contained in:
Chengxu Yang
2023-08-15 22:29:34 +08:00
committed by GitHub
parent 5b1690fffa
commit ebcfd96d94

View File

@ -88,6 +88,7 @@ fn main() -> Result<()> {
.map(|(cu_file, obj_file)| {
let mut command = std::process::Command::new("nvcc");
command
.arg("-std=c++17")
.arg(format!("--gpu-architecture=sm_{compute_cap}"))
.arg("-c")
.args(["-o", obj_file.to_str().unwrap()])