NVlabs / NVBit

198 stars 18 forks source link

Assertion `ctx_state_map.find(ctx) == ctx_state_map.end()' #92

Closed mahmoodn closed 1 year ago

mahmoodn commented 1 year ago

While using mem_trace.so, I see this assertion error for an application.

MEMTRACE: STARTING CONTEXT 0x555bc14decf0
MEMTRACE: CTX 0x555bc14decf0, Inspecting CUfunction 0x555bc2bdd8a0 name dummy_kernel() at address 0x7f6d952ffb00
MEMTRACE: CTX 0x0000555bc14decf0 - LAUNCH - Kernel pc 0x00007f6d952ffb00 - Kernel name dummy_kernel() - grid launch id 1 - grid size 1,1,1 - block size 512,1,1 - nregs 4 - shmem 0 - cuda stream id 93852597916896
MEMTRACE: TERMINATING CONTEXT 0x555bc14decf0
MEMTRACE: STARTING CONTEXT 0x555bc14decf0
gmx: mem_trace.cu:319: void nvbit_at_ctx_init(CUcontext): Assertion `ctx_state_map.find(ctx) == ctx_state_map.end()' failed.
Aborted (core dumped)

Don't know how to debug more. There is no problem with opcode_hist. I am using 1.5.3 version. Any idea about that?

ovilla commented 1 year ago

What is the application? Do you see the same issue with older versions of nvbit? Thanks.

mahmoodn commented 1 year ago

The application is gromacs, but at the moment, I will close the issue as there are some steps behind that which I have to fix.