Theano/Theano — pull request #797 by abergeron (2012-07-30 18:15:00+00:00)
Title: Dump the module code before showing the nvcc errors.

In my experience 99% of the time, the error message from nvcc if way more useful to find the source of the problem than the code of the module that was compiled. But this error message is lost at the top of a giant code dump and nobody reports it when they create new issues, creating back and forth just to get the message and try to fix the problem.

This change just prints the code first make the error message much more visible.