I am trying to run python code in my NVIDIA GPU and googling seemed to tell me that numbapro was the module that I am looking for. However, according to this, numbapro is no longer continued but has been moved to the numba library. I tried out numba and it's @jit
decorator does seem to speed up some of my code very much. However, as I read up on it more, it seems to me that jit
simply compiles your code during run-time and in doing so, it does some heavy optimization and hence the speed-up.
This is further re-enforced by the fact that jit
does not seem to speed up the already optimized numpy operations such as numpy.dot
etc.
Am I getting confused and way off the track here? What exactly does jit
do? And if it does not make my code run on the GPU, how else do I do it?