Skip to content

Commit 8c55081

Browse files
committed
Add log
1 parent 9db0950 commit 8c55081

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

intel-mkl-tool/src/cli.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ fn main() -> Fallible<()> {
5151
}
5252

5353
Opt::Package { path } => {
54-
let out = intel_mkl_tool::package(&path)?;
55-
println!("{}", out.display());
54+
let _out = intel_mkl_tool::package(&path)?;
5655
}
5756
}
5857
Ok(())

intel-mkl-tool/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,12 @@ pub fn package(mkl_path: &Path) -> Fallible<PathBuf> {
122122
bail!("MKL directory not found: {}", mkl_path.display());
123123
}
124124
let (year, update) = get_mkl_version(&mkl_path.join("include/mkl_version.h"))?;
125+
let out = PathBuf::from(format!("mkl_linux64_{}_{}.tar.zst", year, update));
126+
info!("Intel MKL version: {}.{}", year, update);
127+
info!("Create archive for Linux/64bit systems: {}", out.display());
125128
let shared_libs: Vec<_> = glob(mkl_path.join("lib/intel64/*.so").to_str().unwrap())?
126129
.map(|path| path.unwrap())
127130
.collect();
128-
let out = PathBuf::from(format!("mkl_linux64_{}_{}.tar.zst", year, update));
129131
let f = fs::File::create(&out)?;
130132
let buf = io::BufWriter::new(f);
131133
let zstd = zstd::stream::write::Encoder::new(buf, 6)?;

0 commit comments

Comments
 (0)