GithubHelp home page GithubHelp logo

Comments (13)

mcaceresb avatar mcaceresb commented on May 26, 2024 1

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.

from stata-gtools.

mcaceresb avatar mcaceresb commented on May 26, 2024

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

from stata-gtools.

felixholub avatar felixholub commented on May 26, 2024

-bash: ldconfig: command not found
I would need to contact the system admin (it's a server) in case this is required.

from stata-gtools.

mcaceresb avatar mcaceresb commented on May 26, 2024

Try these:

locate libgomp
whereis libgomp.so
whereis libgomp.so.1

If it exists in your system, it may also be named libgomp.so.1.0 or libgomp.so.1.0.0 so try searching for them as well. Let me know if any of these commands fail.

from stata-gtools.

felixholub avatar felixholub commented on May 26, 2024

Output of locate libgomp

/usr/lib/gcc/x86_64-linux-gnu/4.7/libgomp.a
/usr/lib/gcc/x86_64-linux-gnu/4.7/libgomp.so
/usr/lib/gcc/x86_64-linux-gnu/4.7/libgomp.spec
/usr/lib/x86_64-linux-gnu/libgomp.so.1

/usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0
/usr/share/doc/libgomp1
/usr/share/doc/gcc-4.7-base/test-summaries/libgomp.sum.gz
/var/lib/dpkg/info/libgomp1:amd64.list
/var/lib/dpkg/info/libgomp1:amd64.md5sums
/var/lib/dpkg/info/libgomp1:amd64.postinst
/var/lib/dpkg/info/libgomp1:amd64.postrm
/var/lib/dpkg/info/libgomp1:amd64.shlibs
/var/lib/dpkg/info/libgomp1:amd64.symbols

The output of the various whereis commands is always empty.

from stata-gtools.

mcaceresb avatar mcaceresb commented on May 26, 2024

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.

from stata-gtools.

felixholub avatar felixholub commented on May 26, 2024

from stata-gtools.

mcaceresb avatar mcaceresb commented on May 26, 2024

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:

  • OS
  • Version
  • Processor

I will try to replicate your situation more closely. Can you run and paste the output of

cat /etc/*release*
uname -a
lscpu

from stata-gtools.

felixholub avatar felixholub commented on May 26, 2024
PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"
NAME="Debian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support/"
BUG_REPORT_URL="http://bugs.debian.org/"
3.2.0-4-amd64 #1 SMP Debian 3.2.81-2 x86_64 GNU/Linux
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                32
On-line CPU(s) list:   0-31
Thread(s) per core:    2
Core(s) per socket:    8
Socket(s):             2
NUMA node(s):          2
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 62
Stepping:              4
CPU MHz:               3300.402
BogoMIPS:              6599.92
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              25600K
NUMA node0 CPU(s):     0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30
NUMA node1 CPU(s):     1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31

from stata-gtools.

mcaceresb avatar mcaceresb commented on May 26, 2024

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

from stata-gtools.

mcaceresb avatar mcaceresb commented on May 26, 2024

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.

from stata-gtools.

mcaceresb avatar mcaceresb commented on May 26, 2024

Can you try again? Latest dev and using headroom make? It no longer crashes for me (version 0.6.14)

net install gtools, from(https://raw.githubusercontent.com/mcaceresb/stata-gtools/develop/build/)
sysuse auto
gcollapse mpg, by(headroom make) verbose

from stata-gtools.

felixholub avatar felixholub commented on May 26, 2024

Now it works indeed! Thanks a lot for the support Mauricio, keep up the great work!

from stata-gtools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.