I saw in the documentation that is it possible to have callbacks for NVTX functions.
The documentation states that you need to set the NVTX environment variables appropriately like this:
/* 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); setenv("NVTX_INJECTION64_PATH", inj64_path, 1);
What is this path supposed to point to? Im not sure.
When I try to cast CUpti_CallbackData (like below), i also get an identifier undefined error.
nvtxMarkA_params *params = ((nvtxMarkA_params*)(cbdata->functionParams)); // error: identifier "nvtxMarkA_params" is undefined
Can anyone help me get this working?