-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat(benches): add two new binaries to benchmark scaling #269
base: master
Are you sure you want to change the base?
Conversation
I need to rezrite split_edge_noalloc to be a transactional routine
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #269 +/- ##
==========================================
+ Coverage 84.94% 84.98% +0.03%
==========================================
Files 62 63 +1
Lines 9407 9302 -105
==========================================
- Hits 7991 7905 -86
+ Misses 1416 1397 -19 ☔ View full report in Codecov by Sentry. |
these will be generalized to cell insertion anyway
now there are issues due to asserts in core operations; since the assertions operate in-transaction, some forward passed values can mess up the checks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some random thoughts.
@@ -35,6 +35,28 @@ impl<T: CoordsFloat> CMap2<T> { | |||
self.unused_darts.iter().filter(|v| v.read_atomic()).count() | |||
} | |||
|
|||
/// Return whether a given dart is unused or not. | |||
#[must_use = "unused return value"] | |||
pub fn is_unused(&self, d: DartIdType) -> bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary to have it in a public-facing interface?
println!("topology checked in {}ms", instant.elapsed().as_millis()); | ||
} | ||
|
||
let backend = if std::env::var("BACKEND").is_ok_and(|s| &s == "rayon") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Command line arguments should be a more robust approach.
Think of printing the selected backend to confirm how the results were obtained.
Description
Scope: benches
Type of change: feat
Content description:
grid-random-split
binary. it generates a fixed size unit grid with each square cell having a diagonal split, the direction being random. the map is saved as a legacy VTK binary filecut-edges
binary. it loads a a map from a VTK file, and divide its cells iteratively until a target edge size is reached. the input mesh is assumed to be a triangle mesh, we guarantee that each intermediate step and final result are as wellis_unused
andis_unused_transac
to basic map operations