igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] c stack problem


From: Gary Weissman
Subject: Re: [igraph] c stack problem
Date: Fri, 15 Apr 2011 12:42:36 -0400


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




reply via email to

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