I came to know while reading some literature in CUDA programming and code analysis that “The kernel can be compiled with -cubin to obtain the resource usage, which shows that each thread uses how many number of registers, and each block uses how much bytes of shared memory”
When I tried to run my sample Kernel code with -cubin option as
$nvcc -cubin sample.cu
A file named sample.cubin has been created, which seems to be a binary file.
Can you please tell me how to get the resource usage data with this flag.