mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 18:48:51 +00:00
add c++17 flags (#452)
This commit is contained in:
@ -88,6 +88,7 @@ fn main() -> Result<()> {
|
|||||||
.map(|(cu_file, obj_file)| {
|
.map(|(cu_file, obj_file)| {
|
||||||
let mut command = std::process::Command::new("nvcc");
|
let mut command = std::process::Command::new("nvcc");
|
||||||
command
|
command
|
||||||
|
.arg("-std=c++17")
|
||||||
.arg(format!("--gpu-architecture=sm_{compute_cap}"))
|
.arg(format!("--gpu-architecture=sm_{compute_cap}"))
|
||||||
.arg("-c")
|
.arg("-c")
|
||||||
.args(["-o", obj_file.to_str().unwrap()])
|
.args(["-o", obj_file.to_str().unwrap()])
|
||||||
|
Reference in New Issue
Block a user