|
From: | Oscar Gustafsson |
Subject: | Re: [Help-glpk] xmalloc, thread-safety |
Date: | Thu, 30 Aug 2007 10:25:41 +0200 (MEST) |
On Thu, 30 Aug 2007, Andrew Makhorin wrote:
How hard is it to make a parallel version of GLPK at the moment? It seems like the new functionality in 4.20 and 4.21 may be directed towards that? Are there any plans to provide a parallel GLPK?To make glpk thread-safe you need to provide two platform-specific routines lib_set_ptr and lib_get_ptr (see src/glplib03.c). By default these routines store a pointer in the static memory, and currently only a version for the windows dll is implemented.
(Naturally, it is hard to make an efficient one, but let's say a parallel MILP solver which uses different branching rules in different threads.)
/Oscar
[Prev in Thread] | Current Thread | [Next in Thread] |