-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why does gcollapse fail to load multi-threaded version; using fallback #9
Comments
Whether or not Stata is MP should be irrelevant for this. From a terminal on linux, what is the output of ldconfig -p | grep libgomp
echo $LD_LIBRARY_PATH |
|
Try these: locate libgomp
whereis libgomp.so
whereis libgomp.so.1 If it exists in your system, it may also be named |
Output of
The output of the various |
I see. Can you try export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
stata and then, from the stata command prompt, sysuse auto
gcollapse mpg, by(foreign) verbose And let me know the output? This may be an issue with stata being unable to find libgomp, which the plugin uses for parallelism. If this works, there may be a simple solution so you don't have to run this every time. Let me know. |
Hi Mauricio,
I still get the multi-thread fail output doing as you described.
Am 18.08.2017 um 14:23 schrieb Mauricio Caceres Bravo:
…
I see. Can you try
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
stata
and then, from the stata command prompt,
sysuse auto
gcollapse mpg, by(foreign) verbose
And let me know the output? This may be an issue with stata being
unable to find libgomp, which the plugin uses for parallelism. If this
works, there may be a simple solution so you don't have to run this
every time. Let me know.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AN3iDjACrqTk8UTnp6Cy1c-Lmvo0KA3-ks5sZYIxgaJpZM4O6D3F>.
|
Apologies for the tardiness debugging. I just tried this on a fresh Linux install and it worked. I have to assume it has to do with one of the following:
I will try to replicate your situation more closely. Can you run and paste the output of cat /etc/*release*
uname -a
lscpu |
|
Bug fixes * Should fix #9 Added legacy plugin using older `libgomp.so` library.
Added legacy plugin to Stata package index, which should fix issue #9
I was able to reproduce the bug. It seems it's just a versioning issue, but all the functionality appears to be compatible. Can you try the latest development branch version? I have added a version of the plugin that uses an older version of libgomp. net install gtools, from(https://raw.githubusercontent.com/mcaceresb/stata-gtools/develop/build/)
sysuse auto
gcollapse mpg, by(foreign) verbose |
Actually, do not use the plugin just yet. It seems there is another problem with using the plugin on an older OS. The hashing function does not actually work and it will cause a segmentation fault (crash). Integers are fine because they are not hashed, but anything other than integers is causing a crash for me. Can you run: sysuse auto
gcollapse mpg, by(headroom make) verbose I expect it will cause a crash. Let me know if it does. |
Can you try again? Latest dev and using net install gtools, from(https://raw.githubusercontent.com/mcaceresb/stata-gtools/develop/build/)
sysuse auto
gcollapse mpg, by(headroom make) verbose |
Now it works indeed! Thanks a lot for the support Mauricio, keep up the great work! |
gtools-0.6.16 (2017-09-13) * Improves the issues raised by #7 Now the commands only fail if Stata hits the `matsize` limit (internally, the plugin no longer uses the `subinstr` hack to go from locals to mata string matrices and uses `tokens` instead, which is more appropriate; further, the plugin tries to set matsize to at least the number of variables and gives a verbose error if it fails). * No longer crashes on Linux systems with older glibc versions. * Fixes #14 * Should fix #12 * Fixes #9 * Fixed #8 `gegen` is callable via `by:`; it also gives the stat for the overall group if called without a `by`.
By the way, don't update the plugin. I have added new commands and this broke the legacy compatibility I added here. I'm reopening the issue until I figure out a fix for the new commands as well. |
When I run
The collapse works but I'm told that
note: failed to load multi-threaded version; using fallback
, even though I'm running it with Stata-MP on multicore Linux (and WIN 7, but this is pointed out in TODO). Not sure if a bug or lack of understanding on my site.The text was updated successfully, but these errors were encountered: