Comments (9)
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.
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.
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.
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.
I think you should check your machine's dmesg
to see which part of the code causing the segmentation fault.
from nvbit.
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.
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.
I am using nvcc 11.2 to compile both instr_count.so and vectoradd. gcc/g++ version is 5.5.0
from nvbit.
nvm, got it worked. Was invoking with incorrectly formatted LD_PRELOAD. Thank you for the help.
from nvbit.
Related Issues (20)
- RNNT error, operation not permitted when stream is capturing HOT 2
- Texture Memory Reference HOT 1
- How to flush instruction cache? HOT 1
- What is the maximum number of bits/bytes allowed after nvbit_insert_call?
- Loading NVBit tool with dlopen() explicitly HOT 2
- Finding source line number (in the host code) for cudaMalloc and similar API calls
- Getting PC from NVBit HOT 2
- NVBit hangs when creating Cuda Contexts in parallel (multi-gpu)
- Nvbit misses kernels compared to Nsight products
- Using Nvbit for a specific region of code
- How to use APIs in our own application code
- CUDA 12.0 / Driver > 510 - Unsupported? HOT 1
- NVbit can not work with Lammps? HOT 1
- mem_trace address type
- Non-deterministic behavior
- CUDA 12 and more recent nvidia driver support HOT 2
- Support for CUDA dynamic parallelism
- Support for cooperative groups
- Instructions after exit
- Modify an instruction?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvbit.