NVlabs / NVBit

220 stars 20 forks source link

full instrumentation or sampling instrumentation? #10

Closed wanglu1991 closed 4 years ago

wanglu1991 commented 4 years ago

For the mem-trace tool, I found the instrumentation overhead is big for the first execution of one kernel while it is neglectable for other execution. Does it mean that memory tracing is only instrumented once for one kernel? (sampling instrumentation)

ovilla commented 4 years ago

The instrumentation is applied the first time a kernel (uniquely identified by its name and function pointer) is launched. That is an added cost.

The instrumentation is run by default on every launch, but it can selectively be enabled/disable using the nvbit API. The mem-trace tool runs the instrumentation on every launch.

Please refer to our paper for an explanation of the overheads.

wanglu1991 commented 4 years ago

Thanks