why nvcc sometimes stop working or maybe it take a long long time

Hi , sometimes I meet the problem that the compiler cannot finish the complication task even I wait for a long long time. Maybe my code is a little complicated, there are several nested inline device functions. But it seems nvcc cannot finish the work, usually finally it gives the message: ptxas fatal : Memory allocation failure. I have tried several machines as the same. Does anyone know what happened? Is there any related parameters for the complier? I really need your help!

Thanks!
Mian

Please attach a test app which reproduces this problem along with the build command(s) that you’re using and the output from running “nvcc -V”.

thanks,
Lonni