Skip to content

Commit 1068620

Browse files
committed
MKL 2020.1 for Windows
1 parent ebdbc09 commit 1068620

File tree

3 files changed

+27
-5
lines changed

3 files changed

+27
-5
lines changed

intel-mkl-tool/src/config.rs

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,17 +235,31 @@ mod tests {
235235
};
236236
}
237237

238-
mod dynamic {
238+
#[cfg(target_os = "windows")]
239+
mod macos {
240+
use super::*;
241+
impl_test_download!("mkl-dynamic-lp64-seq");
242+
impl_test_download!("mkl-dynamic-ilp64-seq");
243+
impl_test_download!("mkl-static-lp64-seq");
244+
impl_test_download!("mkl-static-ilp64-seq");
245+
}
246+
247+
#[cfg(target_os = "macos")]
248+
mod macos {
239249
use super::*;
240250
impl_test_download!("mkl-dynamic-lp64-seq");
241251
impl_test_download!("mkl-dynamic-lp64-iomp");
242252
impl_test_download!("mkl-dynamic-ilp64-seq");
243253
impl_test_download!("mkl-dynamic-ilp64-iomp");
244254
}
245255

246-
#[cfg(all(target_os = "linux", target_arch = "x86_64"))]
247-
mod static_ {
256+
#[cfg(target_os = "linux")]
257+
mod linux {
248258
use super::*;
259+
impl_test_download!("mkl-dynamic-lp64-seq");
260+
impl_test_download!("mkl-dynamic-lp64-iomp");
261+
impl_test_download!("mkl-dynamic-ilp64-seq");
262+
impl_test_download!("mkl-dynamic-ilp64-iomp");
249263
impl_test_download!("mkl-static-lp64-seq");
250264
impl_test_download!("mkl-static-lp64-iomp");
251265
impl_test_download!("mkl-static-ilp64-seq");

intel-mkl-tool/src/entry.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,14 @@ impl Entry {
114114
targets.seek(opt_mkl.join("lib/intel64"));
115115
}
116116

117+
// Default setting for Windows installer
118+
let windows_mkl =
119+
PathBuf::from("C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows");
120+
if windows_mkl.exists() {
121+
targets.seek(windows_mkl.join("mkl/lib/intel64"));
122+
targets.seek(windows_mkl.join("compiler/lib/intel64"));
123+
}
124+
117125
if targets.found_any() {
118126
return Ok(Self { config, targets });
119127
} else {

intel-mkl-tool/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ mod mkl {
128128
pub const EXTENSION_STATIC: &'static str = "lib";
129129
pub const EXTENSION_SHARED: &'static str = "lib";
130130
pub const PREFIX: &'static str = "";
131-
pub const VERSION_YEAR: u32 = 2019;
132-
pub const VERSION_UPDATE: u32 = 5;
131+
pub const VERSION_YEAR: u32 = 2020;
132+
pub const VERSION_UPDATE: u32 = 1;
133133
}
134134

135135
fn s3_addr() -> String {

0 commit comments

Comments
 (0)