Skip to content
Snippets Groups Projects
Commit 889e426d authored by prrathi's avatar prrathi
Browse files

fac works

parent 2c6c38c0
No related branches found
No related tags found
1 merge request!115GPU backend
This commit is part of merge request !115. Comments created here will be created in the context of that merge request.
...@@ -1017,9 +1017,6 @@ impl PassManager { ...@@ -1017,9 +1017,6 @@ impl PassManager {
let mut nvcc_process = Command::new("nvcc") let mut nvcc_process = Command::new("nvcc")
.arg("-c") .arg("-c")
.arg("-O3") .arg("-O3")
.arg("-lcudart")
.arg("-L/usr/lib/x86_64-linux-gnu")
.arg("-L/usr/local/cuda/lib64")
.arg("-o") .arg("-o")
.arg(&cuda_object) .arg(&cuda_object)
.arg(&cuda_path) .arg(&cuda_path)
......
...@@ -6,4 +6,11 @@ fn main() { ...@@ -6,4 +6,11 @@ fn main() {
.unwrap() .unwrap()
.build() .build()
.unwrap(); .unwrap();
#[cfg(feature = "cuda")]
println!("cargo::rustc-link-search=native=/usr/lib/x86_64-linux-gnu/");
#[cfg(feature = "cuda")]
println!("cargo:rustc-link-search=native=/usr/local/cuda/lib64");
#[cfg(feature = "cuda")]
println!("cargo:rustc-link-lib=cudart");
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment