Comments (3)
Have you checked the examples like instr_count
in the tools
folder?
Basically, you need to write your tool, compile it as a dynamic library .so
file, and run LD_PRELOAD=<tool>.so <your program>
to perform the binary instrumentation.
from nvbit.
@x-y-z Thanks for your reply.
I understand the example instr_count
, but I want to use NVBit for other purposes, such as modify the SASS of a kernel.
I don't want to use it as a shared library. So my question is what kind of device function can be found by nvbit_insert_call
? Must they be loaded as a .so
file?
from nvbit.
To modify the SASS of a kernel, you can refer to mov_replace
as an example.
The current implementation of NVBit only allows using it as a shared library. Device functions used in your binary could be found by NVBit.
From the error above, your instrumentation function merged_kernel0
was not found. You should put that function in inject_functs.cu and compile the file as part of NVBit tool.
from nvbit.
Related Issues (20)
- TensorFlow stuck in infinite loop when executed with NVBit.
- How to close the WARNING in NVBit
- control flow graph can not be extended
- F2FP or Uf2FP?
- 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
- What is the `offset` in void `nvbit_add_call_arg_launch_val64(const Instr* instr, int offset, bool is_variadic_arg = false)`
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.