Ex) Edit as you like and Use it
#include "nvToolsExt.h"
char names[10][20] = {"a","b","c","d","e"};
for(int i = 0; i<10; i++)
{
char temp[100] = " ";
sprintf(temp, "%d", i);
strcat(temp, names[0]);
nvtxRangedId_t nvtx_name_1;
nvtx_name_1 = nvtxRangeStartA(temp); // temp is "0a"
}
'NVIDIA Nsight System' 카테고리의 다른 글
Nsight System : Getting Started Guide (0) | 2021.10.01 |
---|