[Top][All Lists]

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

Re: [igraph] Multi-threading and igraph

From: Gábor Csárdi
Subject: Re: [igraph] Multi-threading and igraph
Date: Fri, 29 Oct 2010 23:03:32 +0200

Hi Tom,

indeed, the error handling is not thread-safe in igraph. I guess it
would not be too hard to make it thread-safe, but I am not an expert
on this. Could you recommend some good documentation on writing
thread-safe libraries?


On Fri, Oct 29, 2010 at 10:22 PM, Thomas Gorochowski
<address@hidden> wrote:
> Hi there,
> I am attempting to use OpenMP for some statistical sampling. When using 
> igraph functions within a parallel block I have noticed errors occur such as 
> the following:
> corrupt finally stack, popping 2 elements when only 1 left
> Assertion failed: (no>=0), function IGRAPH_FINALLY_REAL, file error.c, line 
> 126.
> Abort trap
> I'm assuming that igraph has not been written with multi-threading in mind, 
> however, was wondering if there are any plans to make the library thread-safe 
> in the near future? I'd ideally not like to fork processes as some data is 
> required to be shared and passing that via messages is never much fun!
> Thank for a great library and keep up the good work.
> Tom.
> --
> T.E. Gorochowski
> University of Bristol, Centre for Complexity Sciences (BCCS)
> http://www.chofski.co.uk, address@hidden
> Try our dynamical network simulator at http://www.netevo.org
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help

Gabor Csardi <address@hidden>     UNIL DGM

reply via email to

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