igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] c stack problem


From: Gábor Csárdi
Subject: Re: [igraph] c stack problem
Date: Fri, 15 Apr 2011 12:45:21 -0400

Gary,

Rmpi and OpenMPI (and MPI in general) have nothing to do with
multithreading AFAIK, so you are safe.

Best,
Gabor

On Fri, Apr 15, 2011 at 12:42 PM, Gary Weissman <address@hidden> wrote:
>
> I am not an expert on threading, but was planning to use R-igraph in a
> parallel environment using Rmpi under OpenMPI.  Are there restrictions on
> this approach with igraph not being thread-safe?
> Thank you for your work on igraph!
> Best,
> Gary
>
>
> On Apr 15, 2011, at 12:00 PM, address@hidden wrote:
>
> Hi Roberto,
>
> The short answer is that igraph is not thread-safe, so you can only use
> igraph from one thread at the same time.
>
> The long answer was discussed last year in a discussion thread that starts
> here (follow the thread for the answers):
>
> http://lists.nongnu.org/archive/html/igraph-help/2010-10/msg00150.html
>
> However, you could probably speed up your code a bit by constructing the
> edge list first and then adding the edges in one batch using
> igraph_add_edges.
>
> --
> T.
>
> --
> Gary Weissman
> http://www.babelgraph.org/
> address@hidden
>
>
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>
>



-- 
Gabor Csardi <address@hidden>     MTA KFKI RMKI



reply via email to

[Prev in Thread] Current Thread [Next in Thread]