Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ fn run_cmake_command(conf: &Config, build_dir: &std::path::PathBuf) {
_ => fail("Invalid FFT upstream option set"),
};
match conf.cpu_blas_type.as_ref() {
"LAPACKE" => { blas_options.push(format!("-DUSE_CPU_F77_BLAS:BOOL={}", "ON")); },
"LAPACKE" => { blas_options.push(format!("-DUSE_CPU_F77_BLAS:BOOL={}", "OFF")); },
"MKL" => { blas_options.push(format!("-DUSE_CPU_MKL:BOOL={}", "ON")); },
_ => fail("Invalid BLAS upstream option set"),
};
Expand Down Expand Up @@ -356,7 +356,9 @@ fn blob_backends(conf: &Config, build_dir: &std::path::PathBuf) -> (Vec<String>,
}
} else if conf.use_backend == "opencl" {
backends.push(("afopencl".to_string()));
backends.push("OpenCL".to_string());
if ! cfg!(target_os = "macos"){
backends.push("OpenCL".to_string());
}
if cfg!(windows) {
backend_dirs.push(format!("{}\\lib\\x64", conf.opencl_sdk));
} else {
Expand Down