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
Do a copy when NumPy didn't allocate new memory.

An opt will remove this case if the repeat pattern is a constant 1.
Merge pull request #1971 from nouiz/tile

[BUG] Do a copy when NumPy didn't allocate new memory.
check return value for failure
Apply the previous fix elsewhere.
decref on t as this is clearner.
Make reduction on the columns of a matrix in c order faster on the GPU.
fix compilation crash
some pep8
fix comment. I ran the tests this time!
fix crash of profiling atexit when clashes with pycuda atexit handler
Add warning if the cuda lib dir is in the -L path.