Switch over to the v2 API.
Remove trailing whitespace.
Some fixes to the code all around and make sure to initialize cublas along with the device.
Make it compile on cuda < 6.0 and add fix 0-size cases.
Stop adding -L/usr/local/cuda/lib{,64} as argument to nvcc.

This was never needed and also causes the errors with fatbinwrap_65.
Merge pull request #1966 from abergeron/cublas_v2

Switch to cublas v2
Merge pull request #1968 from abergeron/fix_fatbin

Stop adding -L/usr/local/cuda/lib{,64} as argument to nvcc.
Added check in order to see if 'may_share_memory' exists.
Merge pull request #1969 from AlassaneNdiaye/fix__test_cross_validation.py

Modifications in order to pass the tests in pylearn2/cross_validation/tests/test_cross_validation.py