We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f72ad2 commit cb5e860Copy full SHA for cb5e860
1 file changed
vortex-cuda/build.rs
@@ -12,8 +12,8 @@ fn main() {
12
let manifest_dir = std::env::var("CARGO_MANIFEST_DIR").expect("Failed to get manifest dir");
13
let kernels_dir = Path::new(&manifest_dir).join("kernels");
14
15
- if !has_nvcc() {
16
- // Don't run CUDA compilation if nvcc is not available.
+ if cfg!(target_os = "linux") && !has_nvcc() {
+ // Only warn on Linux where we expect CUDA to be available.
17
println!("cargo:warning=nvcc not found, skipping CUDA kernel compilation");
18
return;
19
}
0 commit comments