Avoid linking with CUDA directly
This commit is contained in:
@ -42,8 +42,9 @@ test-stable-perf)
|
|||||||
.rs$ \
|
.rs$ \
|
||||||
Cargo.lock$ \
|
Cargo.lock$ \
|
||||||
Cargo.toml$ \
|
Cargo.toml$ \
|
||||||
ci/test-stable-perf.sh \
|
^ci/test-stable-perf.sh \
|
||||||
ci/test-stable.sh \
|
^ci/test-stable.sh \
|
||||||
|
^core/build.rs \
|
||||||
^fetch-perf-libs.sh \
|
^fetch-perf-libs.sh \
|
||||||
^programs/ \
|
^programs/ \
|
||||||
^sdk/ \
|
^sdk/ \
|
||||||
|
@ -41,14 +41,5 @@ fn main() {
|
|||||||
} else {
|
} else {
|
||||||
println!("cargo:rerun-if-changed={}/libcuda-crypt.so", perf_libs_dir);
|
println!("cargo:rerun-if-changed={}/libcuda-crypt.so", perf_libs_dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
let cuda_home = match env::var("CUDA_HOME") {
|
|
||||||
Ok(cuda_home) => cuda_home,
|
|
||||||
Err(_) => String::from("/usr/local/cuda"),
|
|
||||||
};
|
|
||||||
println!("cargo:rustc-link-search=native={}/lib64", cuda_home);
|
|
||||||
println!("cargo:rustc-link-lib=dylib=cudart");
|
|
||||||
println!("cargo:rustc-link-lib=dylib=cuda");
|
|
||||||
println!("cargo:rustc-link-lib=dylib=cudadevrt");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
PERF_LIBS_VERSION=v0.14.0
|
PERF_LIBS_VERSION=v0.14.1
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
Reference in New Issue
Block a user