Subject: CGAL users discussion list
List archive
- From: Yann GAVET <>
- To:
- Subject: [cgal-discuss] parallel lloyd_optimize_mesh_2 ?
- Date: Fri, 16 Apr 2021 17:46:28 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Dkim-filter: OpenDKIM Filter v2.10.3 zmtaauth01.partage.renater.fr E7DF3140864
- Ironport-hdrordr: A9a23:yoFsB63fHDLXgvbED90F0AqjBblyeYIsi2QD101hICF9WMqeisyogbA/3Rj7lD4eVBgb6Ku9EYOHRm7R8oMw3JIYOq2sUBKjlGyjKoxj6oWK+UyeJwTV8OlB2aB8N5VvEdGYNykDse/WwimdV/khxcSK68mT6dv24lVMaUVRa69m5xpkEQrzKCJLbSRPGJZRLuv62uNpvDylEE5nDPiTIlkgc6z9q8bQlJTgCCR2fiIPzAWVlzun5PrbPnGjr3MjeghCy7sj7mTJ+jaRjs7I3pDa9jbny2TR455K8eGRr+drOcrksLl3FhzRkAqyIKxuV7qe1QpFxt2H2RIQnN7Fvhs6e/1v5X+URHi8pTHkxxPtuQxel0PK+BuijXzqvMDjAAsmBcYEv5tQdiHS7VEt1esMrZ5j7iaju51eEB/a2B3h6dSNbQhjknCoqWcv+NRj9UB3YM8gaKRMt8gk9ktTF5sMdRiV1Lwa
Dear all,
I am trying to modify the function lloyd_optimize_mesh_2 in order to have a parallel computation of all movements. As a reminder, each vertex of the triangulation should move to the geometrical center of its cell (defined by the voronoi diagram).
When I simulate the threaded behavior (using a serie of different function calls), I have to 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
Thus, my question is for cgal experts: do you think this method could be parallel ? is there any static variable that could not be used by multiple threads ?
Thank you very much for your time
Yann
--
Yann GAVET - Professor
LGF CNRS 5307 - Ecole Nationale Supérieure des Mines de Saint-Etienne
158 Cours Fauriel, CS 62362, 42023 SAINT-ETIENNE cedex 2
Tel: (33) - 4 7742 0170
Free (libre) book on image processing with python: http://iptutorials.science
- [cgal-discuss] parallel lloyd_optimize_mesh_2 ?, Yann GAVET, 04/16/2021
- Re: [cgal-discuss] parallel lloyd_optimize_mesh_2 ?, Sebastien Loriot, 04/17/2021
- Re: [cgal-discuss] parallel lloyd_optimize_mesh_2 ?, Yann GAVET, 04/17/2021
- Re: [cgal-discuss] parallel lloyd_optimize_mesh_2 ?, Sebastien Loriot, 04/17/2021
- Re: [cgal-discuss] parallel lloyd_optimize_mesh_2 ?, Yann GAVET, 04/17/2021
- Re: [cgal-discuss] parallel lloyd_optimize_mesh_2 ?, Sebastien Loriot, 04/17/2021
Archive powered by MHonArc 2.6.19+.