You can enable profiling of markers using the Activity API using cuptiActivityEnable(CUPTI_ACTIVITY_KIND_MARKER)
Are these user created markers?
I tried using nvtxRangePushA() and Pop() but there was nothing in the activity print. (run on the activity_trace example)
I can see that these markers are related to the CUpti_ActivityMarker2 type
Are these user created markers? I tried using nvtxRangePushA() and Pop() but there was nothing in the activity print. (run on the activity_trace example)
When user enables activity CUPTI_ACTIVITY_KIND_MARKER, this enables CUPTI to collect records for user created markers.
There is an additional setting needed to get records for NVTX markers:
/* Set env so CUPTI-based profiling library loads on first nvtx call. */
char *inj32_path = “/path/to/32-bit/version/of/cupti/based/profiling/library”;
char *inj64_path = “/path/to/64-bit/version/of/cupti/based/profiling/library”;
setenv(“NVTX_INJECTION32_PATH”, inj32_path, 1); // for 32-bit
setenv(“NVTX_INJECTION64_PATH”, inj64_path, 1); // for 64-bit
You need to set environment variable NVTX_INJECTION32/64_PATH to libcupti.so before calling activity_trace sample.
Please let us know if this resolves your error/doubt
CUPTI team is planning to add a sample to show NVTX usage using CUPTI in future release.
Thanks.