[Proj] Multithread support in PROJ 4.8.0

José Luis García Pallero jgpallero at gmail.com
Wed Apr 11 01:47:27 PDT 2012


El día 10 de abril de 2012 13:35, Fischer, Robert P.
(GISS-6110)[COLUMBIA UNIVERSITY] <robert.p.fischer-1 at nasa.gov>
escribió:
> I did not come across any documentation, this is REALLY good to know.  Especially since I was considering parallelizing my code.
>
> I would not need an explicit example in OpenMP (I would use MPI anyway).  Rather, I would need a description of how to do things in a thread-safe manner, avoid things being shared when they shouldn't, etc.
>

Hi,

I've seen that have a file called src/multistresstest.c in the 4.8.0
distribution in which multithreaded capabilities are tested. The
program uses pthreads but I'm not understand clearly the way of use
for the projCtx object. I don't understand if each thread should
create it own ctx or if it should be created at the beginning of the
program. So in my case I'm not so sure the way of use in OpenMP
programs. Could someone post an OpenMP example?

Thanks

> -- Bob
>
> ________________________________________
> From: proj-bounces at lists.maptools.org [proj-bounces at lists.maptools.org] On Behalf Of José Luis García Pallero [jgpallero at gmail.com]
> Sent: Tuesday, April 10, 2012 6:11 AM
> To: PROJ.4 and general Projections Discussions
> Subject: [Proj] Multithread support in PROJ 4.8.0
>
> Hello:
>
> I've seen that in version 4.8.0 has added to proj the thread safe
> capability via the Ctx structs. But, is documented the usage of this
> new feature? Exists any examples with OpenMP? Where?
>
> Thanks
>
> --
> *****************************************
> José Luis García Pallero
> jgpallero at gmail.com
> (o<
> / / \
> V_/_
> Use Debian GNU/Linux and enjoy!
> *****************************************
> _______________________________________________
> Proj mailing list
> Proj at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/proj
> _______________________________________________
> Proj mailing list
> Proj at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/proj



-- 
*****************************************
José Luis García Pallero
jgpallero at gmail.com
(o<
/ / \
V_/_
Use Debian GNU/Linux and enjoy!
*****************************************



More information about the Proj mailing list