Giter VIP home page Giter VIP logo

Comments (9)

x-y-z avatar x-y-z commented on July 26, 2024

Can you give more detail information? Sorry, I am not able to reproduce it. Also, according to ld.so manpage, LD_PRELOAD accepts a list of objects separated by whitespace or colons. I am not sure the command you gave would work.

from nvbit.

ksangeet990 avatar ksangeet990 commented on July 26, 2024

Hi @x-y-z,

Running the instr_count tool on Ubuntu 14.04, experienced the symbol lookup error issue.
./test-apps/vectoradd/vectoradd: symbol lookup error: ./tools/instr_count/instr_count.so: undefined symbol: _ZTVNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE.
To mitigate the issue, followed steps in #3 to add
libstdc++.so.6 from ubuntu 16.04 but faced with the segmentation fault error.
Let me know if you need any more information.
PS Command used:
LD_PRELOAD=<path to nvbit tool> /usr/lib/x86_64-linux-gnu/libstdc++.so.6 <your app>

from nvbit.

x-y-z avatar x-y-z commented on July 26, 2024

This method works for me locally. I ran vectoradd in Ubuntu 14.04+CUDA8.0 with instr_count.so compiled with nvcc 11.2 and libstdc++.so.6 copied from Ubuntu 20.04.

Maybe you can try libstdc++.so.6 from Ubuntu 20.04.

from nvbit.

ksangeet990 avatar ksangeet990 commented on July 26, 2024

As suggested by you, I ran the tool with libstdc++.so.6 from Ubuntu 20.04 loaded using LD_PRELOAD. Still getting the segmentation fault. Any more suggestions that I could try out?

from nvbit.

x-y-z avatar x-y-z commented on July 26, 2024

I think you should check your machine's dmesg to see which part of the code causing the segmentation fault.

from nvbit.

ksangeet990 avatar ksangeet990 commented on July 26, 2024

It's giving me this, any pointers?
instr_count.so[11624]: segfault at 0 ip 00007fb8c24f3361 sp 00007ffca35f6768 error 4 in instr_count.so[7fb8c24de000+e1000].
P.S. Also using nvbit 1.4 release

from nvbit.

x-y-z avatar x-y-z commented on July 26, 2024

What nvcc version were you using to compile instr_count.so? I used nvcc 11.0 and 11.2 to compile instr_count.so, both worked without any issue.

from nvbit.

ksangeet990 avatar ksangeet990 commented on July 26, 2024

I am using nvcc 11.2 to compile both instr_count.so and vectoradd. gcc/g++ version is 5.5.0

from nvbit.

ksangeet990 avatar ksangeet990 commented on July 26, 2024

nvm, got it worked. Was invoking with incorrectly formatted LD_PRELOAD. Thank you for the help.

from nvbit.

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.