Subject: CGAL users discussion list
List archive
- From: Edoardo Milotti <>
- To:
- Subject: Re: [cgal-discuss] traversing triangulation in parallel?
- Date: Fri, 26 Jan 2018 20:32:36 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:nHDbPBY165rHzND6iGNKRgz/LSx+4OfEezUN459isYplN5qZr828bnLW6fgltlLVR4KTs6sC17KP9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCagbb9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjmk8qxlSgLniD0fOjA57G7YhdF+gqxVoBy/pRNxwInabZqPO/Zie6PQZ9MaSXZfUstXSidPApm8b4wKD+cZMuhXso79qEEUrRSjAgmnGeThyj5Mhn/xwa06z+UhGhzB0QM+At0Ot27brM/oO6cVS+y1yajIzTHEb/NKxTf96ZPFcgw6of2WXLJwd8TRyU81GwPEklWdsIroNC6b2OQKtmiU9etgVeS3hm4oqgFxvjivxto3hYXTmo0VzVXE+T1lz4Y6P9K4TFR3Ydm+EJtfsSyRKoh4Qts6Tm11tys21qcKtYOncCUK0pgqxgTTZ+KIfoSQ/x7uV+WcLS1miH54eb+znQi+/VSgx+HmS8W531ZHoyxYmdfWrH8NzQbc6s2fR/t94Eih3TGP2hjL6uFDOkA0ibDUJ4Q9wr4rjJYTsELDHiHwmEnsja+Wal0o+umu6+v5frXrvoKQOoBohg3kL6gihsyyDf45PwQUQWSW9vyw1Lj58k34RLVKgOc2kq7csJ3CO8sUu6m5DBVP0ok+7BazFTKm0NUcnXkAMFJFZBOHgpP1O1HVOvz4DPG/g1qqkDtxxvDGIqXtAo/RIXjbjLfhYbF95lZAxwo8199f44tYBawAIPLoRkDxqcfYDgQiPgyvw+fnDc192ZkEVWKOBK+ZKqLSvkWS6uIhOenfLLMS7T3yIvxg6//1hmIigncce7Oo1N0ZciOWBPNjdmiVZnP2jtBJNGYOuRYiTaS+hVGFWCRfYDC3XqY7+i06IJ69S4bFSIbrgaDXj3TzJYFfem0TUgPEKnzvbYjRA65dOhLXGddol3k/bZbkToYg0R+0swqjkeh7NazV/CMe85P/hoEsu7/j0Coq/DkxNPyzlnmXRjguzH8TAT4w0qY5oFAvkg7eg5g9uORREJlo390MUgo+MseMnfR9EMz7HB7aONaPRlDgQ8n0WTw=
Hi Thierry,
the example that you quote is just what I used in my code because I had not parallelization in mind. However a simple way to achieve this is just to use a thread per node (finite vertex) and query the neighboring nodes. This limits speed to the maximum number of threads that you can actually use in your processor. I do not have the correct code at hand, but given a little time I could give you some hint.
Best, Edoardo
Best ThierryThe example (Triangulation_3/info_insert_with_pair_iterator.cpp) is exactly what I need. There the loop is traversed by "for (vit = T.finite_vertices_begin(); vit != T.finite_vertices_end(); ++vit)". But this is a pure serial execution. Is there anybody who knows how to do this in parallel manner?But after an other few days of trying to traverse a Triangulation, I get stuck and need some help or inspiration. Is there any example showing this? I tried with Compact_container, arrays, openMP and tbb. No success. (see https://github.com/thierry3000/VBL/blob/806098f993d6a96da448b6c6fad37aab043bcab5/tools/tests/parallel_insertion_in_delaunay_3.cpp)Dear all,I really love the Documentation of CGAL, you can find almost everything explained there. Unfortunately the parallel features are not so well documented,yet. Meanwhile I know how to create a Triangulation in parallel (the examples and this mailing-list helped ;-) ).
- [cgal-discuss] traversing triangulation in parallel?, Thierry Fredrich, 01/26/2018
- Re: [cgal-discuss] traversing triangulation in parallel?, Edoardo Milotti, 01/26/2018
Archive powered by MHonArc 2.6.18.