Subject: CGAL users discussion list
List archive
- From: Andreas Fabri <>
- To:
- Subject: Re: [cgal-discuss] Heap corruption when constructing AABB tree with OPENMP
- Date: Sat, 22 Feb 2020 22:28:00 +0100
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:q/mY3xASULPmE5Y94vuoUyQJP3N1i/DPJgcQr6AfoPdwSP37oMSwAkXT6L1XgUPTWs2DsrQY0raQ4/6rADBQqb+681k8M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aFRrwLxd6KfroEYDOkcu3y/qy+5rOaAlUmTaxe7x/IAi5oAnLtcQbgIRuJrs+xxbKv3BFZ/lYyWR0KF2cmBrx+t2+94N5/SRKvPIh+c9AUaHkcKk9ULdVEjcoPX0r6cPyrRXMQheB6XUaUmUNjxpHGBPF4w3gXpfwqST1qOxw0zSHMMLsTLA0XTOi77p3SBLtlSwKOSI1/H3Rh8dtiq9QvRCvqAFlw4PMfY+bKvR+cKPec90US2VOUcReWDBaD4ymc4cCFfAMMfpWooT/oVYFsBuwBROrBOPq0jJFmnn20rAg0+s/Cw7GxxErEdIUv3vPttX1NboZXOevw6nO0DrDde1Z1i3m6ITSfBAuu+qDXahxccfKxkkgCQTFjlCOpoz5JTOU1uoNvHKH4Op8UuKvkW4mpxttrTiow8chk4/EjZ8bxFDD8CV22oc1JdugRU5+YN6rDIFQtyaBN4txTMMiX3tktzo9yr0Dv5OwYSsEyIw/yhLCaPGKcJKE7g/iWeuROzt1hGxpdKiiixu980Ws0unxWtWu3FtJtCZJjMfAu3MX2xDO7sWKSeNx8lu71TqTzQzf9vtILVwymKHGNZMhxqMwloEPsUvdBC/4hUT2ja6IeUg85uSl7fnsbK/8qZ+GLYB0jxnzMqQwlcy7BuQ1KgsDU3Ke+eS7yrHv50j5T69Ljv0yi6XZt43aJdgBqq6+HQ9V0pwv6xChADe6yNgYnH8HI0xZeB+fkoTkOFLDLOrlAfq+g1mgijdmy+7cMrH8DZjALGDPkLL7crZ8705cxhAzzdda559MEL4BJu/8WlXvu9PCFR81KQK0zPz8B9Vn14MTQm2PDbGeMKPXr1CI+vgvIumCZIAPpDn9N/8l5+TujHMjhVAdeqyp0YMNaH+kBvRmP1mZYX30j9gdHmcFpA4+QPX3h12DSj5ce2uyX7kn5jwgE4KnDYLDRpi3j7Cb3Se7GIdWZmFcBVyWH3fobZ2IW/ILaC2PPMBsiicEVb29S485zB2usxL6y6Z/IurU5CIYsZXj2cBt5+3Xjx4z9SJ7D96c3myOTWx4hGMISCUs0KB4v0x9yk2P0a5mjPxEDdBT5vVJXRkmNZPE0+B2Ecz+VhjdctuTVFqqWs+mDi0pTtIt398OZF5wFMmtjh/Z2yqmGqIal72QBJMo76LcxGPxKt18y3bAzqkhjkMpTtFBNW281eZD8F3YCIfN1kmYjK23br803SjX9W7Fw3DdkltfVVtZV6nfUHkELmXfp874rhfLSbO0BL08dAVIw9SDAqRHbdjkkU9XSv7oJNPEciS6nGLmVkXA/a+FcIe/IzZV5y7aEkVRy1lCr0bDDhA3A2Kam0ybCTVvEVz1ZEa2qLtxpXS+Q1Mu3g+DZFFmzavz8RkQ16TFF6Ejm4kcsSJkkA1aWU6n1oiPWdWNoA9sYL9Nb9o2/FBdxCTSsAkvZsX9fZAnvUYXdkFMh22r1xhzDd8cw5hsqXRwig97KKbd105dMTSG3db2N6GFcmQ=
Epec is currently not multi-threading safe.
The AABB Tree does not need exact constructions, so we should
think
about a way to use the points/triangles/planes for Epic, together
with
the face handles of the Polyhedron parameterized with Epec.
andreas
On 2/22/2020 9:55 PM, Yifang Zhao
wrote:
I am using EPEC Kernel.
Sent from Mail for Windows 10
From:
Andreas Fabri
Sent: 2020年2月22日 21:54
To:
Subject: Re: [cgal-discuss] Heap corruption when
constructing AABB tree with OPENMP
What kernel do you use?
On 2/22/2020 9:51 PM, Yifang Zhao
wrote:
I have a for loop containing approximately
1,000,000 iterations of calling AABBTree.all_intersections() method. Thus, I use #pragma omp
parallel for to speed up the program. However, I got an
error as "A heap has been corrupted". The cpp file is
roughly like the following:
Polyhedron polyhedron;
Facet_tree m_facet_tree(faces(m_polyhedron).first, faces(m_polyhedron).second, m_polyhedon);
#pragma omp parallel for
for (int i = 0; i<100; ++i){
Plane plane = Plane(1, 0, 0, 0);
// Compute intersections
typedef std::vector<Facet_tree::Object_and_primitive_id> Intersections;
Intersections intersections;
m_facet_tree.all_intersections(plane, std::back_inserter(intersections));
}
Finally, The program will break here:
~Handle()
{
if ( PTR && (--PTR->count == 0))
delete PTR;
}
What are the possible reasons that cause
this problem? Thanks a lot!
Kind Regards,
Yifang Zhao.
Sent from Mail for Windows 10
-- Andreas Fabri, PhD Chief Officer, GeometryFactory Editor, The CGAL Project phone: +33.492.954.912 skype: andreas.fabri
-- Andreas Fabri, PhD Chief Officer, GeometryFactory Editor, The CGAL Project phone: +33.492.954.912 skype: andreas.fabri
- [cgal-discuss] Heap corruption when constructing AABB tree with OPENMP, Yifang Zhao, 02/22/2020
- Re: [cgal-discuss] Heap corruption when constructing AABB tree with OPENMP, Andreas Fabri, 02/22/2020
- RE: [cgal-discuss] Heap corruption when constructing AABB tree with OPENMP, Yifang Zhao, 02/22/2020
- Re: [cgal-discuss] Heap corruption when constructing AABB tree with OPENMP, Andreas Fabri, 02/22/2020
- Re: [cgal-discuss] Heap corruption when constructing AABB tree with OPENMP, Yifang Zhao, 02/22/2020
- Re: [cgal-discuss] Heap corruption when constructing AABB tree with OPENMP, Andreas Fabri, 02/22/2020
- Re: [cgal-discuss] Heap corruption when constructing AABB tree with OPENMP, Yifang Zhao, 02/23/2020
- Re: [cgal-discuss] Heap corruption when constructing AABB tree with OPENMP, Andreas Fabri, 02/22/2020
- Re: [cgal-discuss] Heap corruption when constructing AABB tree with OPENMP, Yifang Zhao, 02/22/2020
- Re: [cgal-discuss] Heap corruption when constructing AABB tree with OPENMP, Andreas Fabri, 02/22/2020
- RE: [cgal-discuss] Heap corruption when constructing AABB tree with OPENMP, Yifang Zhao, 02/22/2020
- Re: [cgal-discuss] Heap corruption when constructing AABB tree with OPENMP, Andreas Fabri, 02/22/2020
Archive powered by MHonArc 2.6.18.