Summary: | nlopt: some optimizers are not thread-save because of static variables | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Gert Wollny <gw.fossdev> |
Component: | [OLD] Development | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Patch adding TREADLOCAL specifier |
Upstream just told me that this will be fixed in the next version. Fixed in version 2.2.2 Actually it was completely fixed in version 2.2.3. |
Created attachment 274599 [details, diff] Patch adding TREADLOCAL specifier The optimizers that make use of luksan/pssubs.c are not thread-save because the function luksan_ps1l01__ uses static variables that are not thread local. Amongst these optimizers are ld-lbfgs, ld-var1, ld-var2. The attached patch adds the THREADLOCAL specifier that is used in the library to make static variables thread-local (if the compiler supports it).