Comments (8)
You can use nvbit_read_pred_reg()
to read predicate registers. Also you need to include nvbit_reg_rw.h file in your injection function file.
from nvbit.
how to index the pred reg with this api ?the general reg rw api can be set with reg index
from nvbit.
extern "C" __device__ __noinline__ int32_t nvbit_read_pred_reg() {
#pragma unroll
for (int i = 0; i < 32; i++) __nvbit_var += i;
return __nvbit_var;
}
The definition of this api is as above. how to parse the result?
Like if I want to read what the current status for P5, whether it is true or not, how should I deal wtih the return value?
from nvbit.
It reads out the entire predicate register and only the lower 8 bits ([P7 .. P0]) are used.
from nvbit.
I try to add the code, but read out as 0...
I test it over 2080ti.
from nvbit.
If the predicate register is not used in the code or is set to 0, the result will be 0.
from nvbit.
I try to add the code, but read out as 0...
I test it over 2080ti.
hi dear @leiwen83
I'm also interested in this nvbit_read_pred_reg() function. but how can you display the values of this function, I try to print the values, but there is an error here,
thank you
best regards
William
from nvbit.
It is a device function and should be called only in your instrumentation functions in the inject_func.cu file.
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
- CUDA 12 and more recent nvidia driver support HOT 2
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.