Multithreading support

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Multithreading support

Riedel, Torge

Hi,

 

one more question: Is CGAL multithreading safe? To be more precise: Can I operate in one thread on mesh A and operate in another thread on mesh B? Sure I will need sync-objects when operating on the same mesh. But is it safe to operate on different objects without any problems in different threads?

 

Thank you very much.

Torge


CENIT AG, Industriestrasse 52-54, 70565 Stuttgart, Tel.: +49 711 7825-30, Fax: +49 711 7825-4000, Internet: www.cenit.com
Geschaeftsstellen: Berlin, Frankfurt, Hamburg, Hannover, Muenchen, Oelsnitz, Ratingen, Saarbruecken
Vorstandsmitglieder: Kurt Bengel, Matthias Schmidt
Aufsichtsratsmitglieder: Andreas Schmidt (Vorsitzender des Aufsichtsrats), Hubert Leypoldt, Andreas Karrer
Bankverbindungen:
Deutsche Bank (BLZ 600 700 70) Kto. 1661 040 IBAN : DE85 6007 0070 0166 1040 00 SWIFT-CODE : DEUTDESS,
Commerzbank (BLZ 600 400 71) Kto. 532 015 500 IBAN : DE83 6004 0071 0532 0155 00 SWIFT-Code : COBADEFF600,
Registergericht: Amtsgericht Stuttgart
Handelsregister: HRB Nr. 19117
Umsatzsteuer: ID-Nr. DE 147 862 777
Reply | Threaded
Open this post in threaded view
|

Re: Multithreading support

Sebastien Loriot (GeometryFactory)
If you use a kernel without filtered constructions or reference
counting, then you shouldn't have a problem provided mesh A and mesh B
are different.

Sebastien.

On 01/29/2018 05:47 PM, Riedel, Torge wrote:

> Hi,
>
> one more question: Is CGAL multithreading safe? To be more precise: Can
> I operate in one thread on mesh A and operate in another thread on mesh
> B? Sure I will need sync-objects when operating on the same mesh. But is
> it safe to operate on different objects without any problems in
> different threads?
>
> Thank you very much.
>
> Torge
>
>
> CENIT AG, Industriestrasse 52-54, 70565 Stuttgart, Tel.: +49 711
> 7825-30, Fax: +49 711 7825-4000, Internet: www.cenit.com
> Geschaeftsstellen: Berlin, Frankfurt, Hamburg, Hannover, Muenchen,
> Oelsnitz, Ratingen, Saarbruecken
> Vorstandsmitglieder: Kurt Bengel, Matthias Schmidt
> Aufsichtsratsmitglieder: Andreas Schmidt (Vorsitzender des
> Aufsichtsrats), Hubert Leypoldt, Andreas Karrer
> Bankverbindungen:
> Deutsche Bank (BLZ 600 700 70) Kto. 1661 040 IBAN : DE85 6007 0070 0166
> 1040 00 SWIFT-CODE : DEUTDESS,
> Commerzbank (BLZ 600 400 71) Kto. 532 015 500 IBAN : DE83 6004 0071 0532
> 0155 00 SWIFT-Code : COBADEFF600,
> Registergericht: Amtsgericht Stuttgart
> Handelsregister: HRB Nr. 19117
> Umsatzsteuer: ID-Nr. DE 147 862 777

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


Reply | Threaded
Open this post in threaded view
|

AW: [cgal-discuss] Multithreading support

Riedel, Torge
HI Sebastian,

ok, this sounds like a limitation. Is Surface_Mesh a kernel without filtered constructions and reference counting?
Or maybe I misunderstood you.

Best regards
Torge

> -----Ursprüngliche Nachricht-----
> Von: [hidden email] [mailto:[hidden email]] Im
> Auftrag von Sebastien Loriot (GeometryFactory)
> Gesendet: Montag, 29. Januar 2018 17:57
> An: [hidden email]
> Betreff: Re: [cgal-discuss] Multithreading support
>
> If you use a kernel without filtered constructions or reference counting, then
> you shouldn't have a problem provided mesh A and mesh B are different.
>
> Sebastien.
>
> On 01/29/2018 05:47 PM, Riedel, Torge wrote:
> > Hi,
> >
> > one more question: Is CGAL multithreading safe? To be more precise:
> > Can I operate in one thread on mesh A and operate in another thread on
> > mesh B? Sure I will need sync-objects when operating on the same mesh.
> > But is it safe to operate on different objects without any problems in
> > different threads?
> >
> > Thank you very much.
> >
> > Torge
> >
> >
> > CENIT AG, Industriestrasse 52-54, 70565 Stuttgart, Tel.: +49 711
> > 7825-30, Fax: +49 711 7825-4000, Internet: www.cenit.com
> > Geschaeftsstellen: Berlin, Frankfurt, Hamburg, Hannover, Muenchen,
> > Oelsnitz, Ratingen, Saarbruecken
> > Vorstandsmitglieder: Kurt Bengel, Matthias Schmidt
> > Aufsichtsratsmitglieder: Andreas Schmidt (Vorsitzender des
> > Aufsichtsrats), Hubert Leypoldt, Andreas Karrer
> > Bankverbindungen:
> > Deutsche Bank (BLZ 600 700 70) Kto. 1661 040 IBAN : DE85 6007 0070
> > 0166
> > 1040 00 SWIFT-CODE : DEUTDESS,
> > Commerzbank (BLZ 600 400 71) Kto. 532 015 500 IBAN : DE83 6004 0071
> > 0532
> > 0155 00 SWIFT-Code : COBADEFF600,
> > Registergericht: Amtsgericht Stuttgart
> > Handelsregister: HRB Nr. 19117
> > Umsatzsteuer: ID-Nr. DE 147 862 777
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>


CENIT AG, Industriestrasse 52-54, 70565 Stuttgart, Tel.: +49 711 7825-30, Fax: +49 711 7825-4000, Internet: www.cenit.com
Geschaeftsstellen: Berlin, Frankfurt, Hamburg, Hannover, Muenchen, Oelsnitz, Ratingen, Saarbruecken
Vorstandsmitglieder: Kurt Bengel, Matthias Schmidt
Aufsichtsratsmitglieder: Andreas Schmidt (Vorsitzender des Aufsichtsrats), Hubert Leypoldt, Andreas Karrer
Bankverbindungen:
Deutsche Bank (BLZ 600 700 70) Kto. 1661 040 IBAN : DE85 6007 0070 0166 1040 00 SWIFT-CODE : DEUTDESS,
Commerzbank (BLZ 600 400 71) Kto. 532 015 500 IBAN : DE83 6004 0071 0532 0155 00 SWIFT-Code : COBADEFF600,
Registergericht: Amtsgericht Stuttgart
Handelsregister: HRB Nr. 19117
Umsatzsteuer: ID-Nr. DE 147 862 777


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


Reply | Threaded
Open this post in threaded view
|

Re: Multithreading support

andreas.fabri
Hello,

When you use Simple_cartesian<double> or
Exact_predicates_inexact_constructions_kernel there is no problem.

If you use Exact_predicates_exact_constructions_kernel you
have a problem, if a constructed point is in more than
one mesh.

Andreas



On 1/29/2018 6:34 PM, Riedel, Torge wrote:

> HI Sebastian,
>
> ok, this sounds like a limitation. Is Surface_Mesh a kernel without filtered constructions and reference counting?
> Or maybe I misunderstood you.
>
> Best regards
> Torge
>
>> -----Ursprüngliche Nachricht-----
>> Von: [hidden email] [mailto:[hidden email]] Im
>> Auftrag von Sebastien Loriot (GeometryFactory)
>> Gesendet: Montag, 29. Januar 2018 17:57
>> An: [hidden email]
>> Betreff: Re: [cgal-discuss] Multithreading support
>>
>> If you use a kernel without filtered constructions or reference counting, then
>> you shouldn't have a problem provided mesh A and mesh B are different.
>>
>> Sebastien.
>>
>> On 01/29/2018 05:47 PM, Riedel, Torge wrote:
>>> Hi,
>>>
>>> one more question: Is CGAL multithreading safe? To be more precise:
>>> Can I operate in one thread on mesh A and operate in another thread on
>>> mesh B? Sure I will need sync-objects when operating on the same mesh.
>>> But is it safe to operate on different objects without any problems in
>>> different threads?
>>>
>>> Thank you very much.
>>>
>>> Torge
>>>
>>>
>>> CENIT AG, Industriestrasse 52-54, 70565 Stuttgart, Tel.: +49 711
>>> 7825-30, Fax: +49 711 7825-4000, Internet: www.cenit.com
>>> Geschaeftsstellen: Berlin, Frankfurt, Hamburg, Hannover, Muenchen,
>>> Oelsnitz, Ratingen, Saarbruecken
>>> Vorstandsmitglieder: Kurt Bengel, Matthias Schmidt
>>> Aufsichtsratsmitglieder: Andreas Schmidt (Vorsitzender des
>>> Aufsichtsrats), Hubert Leypoldt, Andreas Karrer
>>> Bankverbindungen:
>>> Deutsche Bank (BLZ 600 700 70) Kto. 1661 040 IBAN : DE85 6007 0070
>>> 0166
>>> 1040 00 SWIFT-CODE : DEUTDESS,
>>> Commerzbank (BLZ 600 400 71) Kto. 532 015 500 IBAN : DE83 6004 0071
>>> 0532
>>> 0155 00 SWIFT-Code : COBADEFF600,
>>> Registergericht: Amtsgericht Stuttgart
>>> Handelsregister: HRB Nr. 19117
>>> Umsatzsteuer: ID-Nr. DE 147 862 777
>>
>> --
>> You are currently subscribed to cgal-discuss.
>> To unsubscribe or access the archives, go to
>> https://sympa.inria.fr/sympa/info/cgal-discuss
>>
>
>
> CENIT AG, Industriestrasse 52-54, 70565 Stuttgart, Tel.: +49 711 7825-30, Fax: +49 711 7825-4000, Internet: www.cenit.com
> Geschaeftsstellen: Berlin, Frankfurt, Hamburg, Hannover, Muenchen, Oelsnitz, Ratingen, Saarbruecken
> Vorstandsmitglieder: Kurt Bengel, Matthias Schmidt
> Aufsichtsratsmitglieder: Andreas Schmidt (Vorsitzender des Aufsichtsrats), Hubert Leypoldt, Andreas Karrer
> Bankverbindungen:
> Deutsche Bank (BLZ 600 700 70) Kto. 1661 040 IBAN : DE85 6007 0070 0166 1040 00 SWIFT-CODE : DEUTDESS,
> Commerzbank (BLZ 600 400 71) Kto. 532 015 500 IBAN : DE83 6004 0071 0532 0155 00 SWIFT-Code : COBADEFF600,
> Registergericht: Amtsgericht Stuttgart
> Handelsregister: HRB Nr. 19117
> Umsatzsteuer: ID-Nr. DE 147 862 777
>
>

--
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project

phone: +33.492.954.912    skype: andreas.fabri

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


Reply | Threaded
Open this post in threaded view
|

Re: Multithreading support

biswajitcse
Sir   Fabri ;

I have a  query to you. Could you give me, a little clue that what is the basic difference between the  Simple_cartesian<double> kernel and Exact_predicates_inexact_constructions_kernel ? Who is better and why? I have seen that your comments are very helpful to learn not only coding but also the theory of computational geometry. It is my own opinion.


Thank you

Biswajit, Ph.D. student
Dept. CSE, Calcutta University, India.

On Mon, Jan 29, 2018 at 11:11 PM, Andreas Fabri <[hidden email]> wrote:
Hello,

When you use Simple_cartesian<double> or Exact_predicates_inexact_constructions_kernel there is no problem.

If you use Exact_predicates_exact_constructions_kernel you
have a problem, if a constructed point is in more than
one mesh.

Andreas




On 1/29/2018 6:34 PM, Riedel, Torge wrote:
HI Sebastian,

ok, this sounds like a limitation. Is Surface_Mesh a kernel without filtered constructions and reference counting?
Or maybe I misunderstood you.

Best regards
Torge

-----Ursprüngliche Nachricht-----
Von: [hidden email] [mailto:[hidden email]] Im
Auftrag von Sebastien Loriot (GeometryFactory)
Gesendet: Montag, 29. Januar 2018 17:57
An: [hidden email]
Betreff: Re: [cgal-discuss] Multithreading support

If you use a kernel without filtered constructions or reference counting, then
you shouldn't have a problem provided mesh A and mesh B are different.

Sebastien.

On 01/29/2018 05:47 PM, Riedel, Torge wrote:
Hi,

one more question: Is CGAL multithreading safe? To be more precise:
Can I operate in one thread on mesh A and operate in another thread on
mesh B? Sure I will need sync-objects when operating on the same mesh.
But is it safe to operate on different objects without any problems in
different threads?

Thank you very much.

Torge


CENIT AG, Industriestrasse 52-54, 70565 Stuttgart, Tel.: +49 711
7825-30, Fax: +49 711 7825-4000, Internet: www.cenit.com
Geschaeftsstellen: Berlin, Frankfurt, Hamburg, Hannover, Muenchen,
Oelsnitz, Ratingen, Saarbruecken
Vorstandsmitglieder: Kurt Bengel, Matthias Schmidt
Aufsichtsratsmitglieder: Andreas Schmidt (Vorsitzender des
Aufsichtsrats), Hubert Leypoldt, Andreas Karrer
Bankverbindungen:
Deutsche Bank (BLZ 600 700 70) Kto. 1661 040 IBAN : DE85 6007 0070
0166
1040 00 SWIFT-CODE : DEUTDESS,
Commerzbank (BLZ 600 400 71) Kto. 532 015 500 IBAN : DE83 6004 0071
0532
0155 00 SWIFT-Code : COBADEFF600,
Registergericht: Amtsgericht Stuttgart
Handelsregister: HRB Nr. 19117
Umsatzsteuer: ID-Nr. DE 147 862 777

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss



CENIT AG, Industriestrasse 52-54, 70565 Stuttgart, Tel.: +49 711 7825-30, Fax: +49 711 7825-4000, Internet: www.cenit.com
Geschaeftsstellen: Berlin, Frankfurt, Hamburg, Hannover, Muenchen, Oelsnitz, Ratingen, Saarbruecken
Vorstandsmitglieder: Kurt Bengel, Matthias Schmidt
Aufsichtsratsmitglieder: Andreas Schmidt (Vorsitzender des Aufsichtsrats), Hubert Leypoldt, Andreas Karrer
Bankverbindungen:
Deutsche Bank (BLZ 600 700 70) Kto. 1661 040 IBAN : DE85 6007 0070 0166 1040 00 SWIFT-CODE : DEUTDESS,
Commerzbank (BLZ 600 400 71) Kto. 532 015 500 IBAN : DE83 6004 0071 0532 0155 00 SWIFT-Code : COBADEFF600,
Registergericht: Amtsgericht Stuttgart
Handelsregister: HRB Nr. 19117
Umsatzsteuer: ID-Nr. DE 147 862 777



--
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project

phone: +33.492.954.912    skype: andreas.fabri


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss





--
thanks and regards 
mobile:9163016823