Skip to content

Commit

Permalink
feat: Remove -O0 and use 3.0.0 mnn
Browse files Browse the repository at this point in the history
  • Loading branch information
uttarayan21 committed Jan 30, 2025
1 parent 6e104bb commit a01658e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mnn-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ pub fn build_cmake(path: impl AsRef<Path>, install: impl AsRef<Path>) -> Result<
config.define("MNN_COREML", CxxOption::COREML.cmake_value());
config.define("MNN_OPENCL", CxxOption::OPENCL.cmake_value());
config.define("MNN_OPENGL", CxxOption::OPENGL.cmake_value());
config.define("CMAKE_CXX_FLAGS", "-O0");
// config.define("CMAKE_CXX_FLAGS", "-O0");
// #[cfg(windows)]
if *TARGET_OS == "windows" {
config.define("CMAKE_CXX_FLAGS", "-DWIN32=1");
Expand Down
2 changes: 1 addition & 1 deletion mnn-sys/vendor
Submodule vendor updated 250 files
2 changes: 1 addition & 1 deletion tools/bencher/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"
license.workspace = true

[target."aarch64-apple-darwin".dependencies]
mnn = { workspace = true, features = ["opencl", "serde", "metal"] }
mnn = { workspace = true, features = ["opencl", "serde", "metal", "coreml"] }

[target."x86_64-apple-darwin".dependencies]
mnn = { workspace = true, features = ["opencl", "serde"] }
Expand Down
1 change: 1 addition & 0 deletions tools/bencher/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,7 @@ pub fn bench(
bar.set_message(format!("Running inference {c}"));
not_terminal.then(|| eprintln!("Running inference {c}"));
net.run_session(&session).cc(BenchError)?;
net.wait(&session);
}
Ok(())
})?;
Expand Down

0 comments on commit a01658e

Please sign in to comment.