Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add libcoupemetis.so #67

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Add libcoupemetis.so #67

wants to merge 2 commits into from

Conversation

hhirtz
Copy link
Member

@hhirtz hhirtz commented Mar 29, 2022

coupe-metis is an implementation of MeTiS using coupe's algorithms.

TODO

  • Compilation flag/feature to choose between i32/f32 and i64/f64
  • Makefile
  • use vsize when adjwgt is null?
  • print errors to stderr instead of stdout, to avoid breaking mesh-part at least

@hhirtz hhirtz changed the title Add libcoupemetis.so WIP: Add libcoupemetis.so Mar 29, 2022
@hhirtz
Copy link
Member Author

hhirtz commented Mar 29, 2022

Patchs pour utiliser coupe-metis avec metis-rs et ainsi appeller coupe via coupe-metis via metis-rs :

metis-rs :

diff --git a/Cargo.toml b/Cargo.toml
index 3a4bf34..b16a258 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,4 +16,4 @@ keywords = ["graph", "mesh", "matrix", "partitioning", "ordering"]
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

 [dependencies]
-metis-sys = "0.1"
+metis-sys = { version = "0.1", path = "metis-sys" }
diff --git a/metis-sys/build.rs b/metis-sys/build.rs
index 9491683..38fe3be 100644
--- a/metis-sys/build.rs
+++ b/metis-sys/build.rs
@@ -3,7 +3,7 @@ use std::path::PathBuf;
 use std::process;

 fn main() {
-    println!("cargo:rustc-link-lib=metis");
+    println!("cargo:rustc-link-lib=coupemetis");
     println!("cargo:rerun-if-changed=wrapper.h");

     let bindings = bindgen::builder()

coupe :

diff --git a/tools/Cargo.toml b/tools/Cargo.toml
index caa2374..01a586b 100644
--- a/tools/Cargo.toml
+++ b/tools/Cargo.toml
@@ -14,7 +14,7 @@ default = ["scotch", "metis"]
 # Partitioners
 coupe = { version = "0.1", path = ".." }
 scotch = { version = "0.1", optional = true }
-metis = { version = "0.1", optional = true }
+metis = { version = "0.1", optional = true, path = "../../metis-rs" }

 # Random number generation
 rand = { version = "0.8", default-features = false, features = ["std"] }

@hhirtz hhirtz marked this pull request as draft May 11, 2022 11:40
@hhirtz hhirtz changed the title WIP: Add libcoupemetis.so Add libcoupemetis.so May 11, 2022
coupe-metis is an implementation of MeTiS using coupe's algorithms.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant