driver versions: 320.57
GPU : Tesla C2050
I just input the commandline , ‘nvcc --help’ on the cmd and it shows
Generate debug information for host code.
Generate debug information for device code.
I never notice these !!! And I guess this is the reason why I failed.
But the new question is how to debug the lwx.cu with ‘-G’?
let me show the steps I made:
1.open the VS2010 and open the lwx.cu without building a project
2.open matlab and enter the directory , to compile the lwx.cu using ‘nvmex -g’
3.vs2010 attach the matlab using the Nsight debugger
4.run the lwx.cu invoked by test.m
now where to debug the lwx.cu with ‘-G’ ? matlab , vs2010 or cmd ? and put the pdb file pruduced by it to where ?