For example, I have a main function like this:
int main(){
//Disable nsight compute here
//Do some preparation using GPU.
//I don't want nsight compute collect metrics or anything else for this part.
prepare_data<<<XX, XXX>>>();
//Enable nsight compute to profile the following kernels
//My work begins
my_work1<<<XXX,XXX>>>();
my_work2<<<XXX,XXX>>>();
....
}
I just want to profile part of my code. Any idea?