-
Notifications
You must be signed in to change notification settings - Fork 1.5k
parallel lloyd_optimize_mesh_2 #5674
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
base: main
Are you sure you want to change the base?
Conversation
Tentative version of lloyd_optimize on Mesh_2 This causes a random segfault
uses pthread for linking
|
Hello all, best regards yann |
|
|
||
| // create and start thread | ||
| TYPE_THREAD th = std::async(&Mesh_global_optimizer_2::threaded_move, this, | ||
| t, std::ref(itBegin), std::ref(itEnd), |
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.
this line should be replaced by t, itBegin, itEnd
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.
Do you mean this will solve the problem ?
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.
It should solve the problem, yes!
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.
However, the crash I was meeting was not the one you mention in the title message.
|
Also, I think |
This PR is for debugging purposes.
Summary of Changes
I am trying to modify the function lloyd_optimize_mesh_2 in order to have a parallel computation of all movements.
When I simulate the threaded behavior (using a serie of different function calls), I have no problem and it seems to work. However, if I use actual threads, I get an error that occurs at Constrained_voronoi_diagram_2.h:360 (this line is polygon.push_back(m_cdt.circumcenter(face));)
This error is malloc(): unaligned tcache chunk detected