Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
graphics/art: Add workaround for OpenMP-related crash when OPENMP=yes
- Loading branch information
Showing
3 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
- workaround for https://bitbucket.org/agriggio/art/issues/227 caused by https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261360 | ||
|
||
--- rtgui/main-cli.cc.orig 2022-01-20 17:13:45 UTC | ||
+++ rtgui/main-cli.cc | ||
@@ -121,6 +121,8 @@ std::pair<bool, bool> dontLoadCache(int argc, char **a | ||
|
||
int main (int argc, char **argv) | ||
{ | ||
+ setenv("LIBOMP_NUM_HIDDEN_HELPER_THREADS", "0", 1); | ||
+ | ||
#ifdef WITH_MIMALLOC | ||
mi_version(); | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
- workaround for https://bitbucket.org/agriggio/art/issues/227 caused by https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261360 | ||
|
||
--- rtgui/main.cc.orig 2022-01-20 17:14:43 UTC | ||
+++ rtgui/main.cc | ||
@@ -370,6 +370,8 @@ void show_gimp_plugin_info_dialog(Gtk::Window *parent) | ||
|
||
int main (int argc, char **argv) | ||
{ | ||
+ setenv("LIBOMP_NUM_HIDDEN_HELPER_THREADS", "0", 1); | ||
+ | ||
#ifdef WITH_MIMALLOC | ||
mi_version(); | ||
#endif |