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!
Add warning if the cuda lib dir is in the -L path.
Merge pull request #1976 from abergeron/fix_fatbin

Add warning if the cuda lib dir is in the -L path.
Merge pull request #1972 from nouiz/cumfct

Add check on the output of NumPy.
Add function_dump() to help user give us reproducable example.
Handle race condition for directory creation.
Add doc
In the memory profiler, use the shortly cut for the strides.
Used python traceback module to set name of theano.function to file_name:line_number.
Made default name functionality more robust to the existane of modules.