hi everyone
i am not able to see the hotspot and source code along with its path in the kernel profile in the unguided analysis in nvvp
the steps done were
- nvcc wrap_number_increased.cu -lineinfo -o wrap_number_increased
- nvprof -o wrap_number_increased.nvvp ./wrap_number_increased
- nvvp wrap_number_increased.nvvp
The code wrap_number_increased.cu is shown below
#include <cuda.h>
#include <stdio.h>
__global__ void test()
{
int i,j;
for(i=0;i<10;i++)
for(j=0;j<100;j++)
{
// printf("Hello gpu\n");
}
}
int main()
{
printf("Hello from the CPU\n");
test<<<2,32>>>();
cudaError_t err = cudaGetLastError();
if (err != cudaSuccess) {
printf("CUDA Error: %s\n", cudaGetErrorString(err));
}
printf("next is cudaDeviceSynchronize()\n");
cudaDeviceSynchronize();
return 0;
}
In nvvp GUI at the timeline i have selected the function “test” then-> unguided analysis-> then select the some part of function test timeline → then selected the kernel profile- pc sampling
but it is saying
Unable to create source/assembly view for kernel Profile-PC sampling analysis.
As shown below
can anyone guide me please
Thanks