Closed AntoineFroger closed 3 years ago
I tested by compiling a simple piece of code using NVTX3_FUNC_RANGE_IF
and NVTX3_FUNC_RANGE_IF_IN
when the condition evaluates to both true
and false
. I profiled the executable with Nsight Systems to validate.
Looks good.
Add the
NVTX3_FUNC_RANGE_IF
andNVTX3_FUNC_RANGE_IN_IF
macros which are similar to theNVTX3_FUNC_RANGE
andNVTX3_FUNC_RANGE_IN
macros except that they only generate a range if the boolean expression passed as parameter evaluates totrue
.Closes #28