提交 a07a6272 authored 作者: Frederic Bastien's avatar Frederic Bastien

Added doc about cudamat and gnumpy conversion function.

上级 5c85bb5d
.. _pycuda: .. _gpu_data_convert:
==================== ===================================
PyCUDA compatibility PyCUDA/CUDAMat/Gnumpy compatibility
==================== ===================================
PyCUDA
======
Currently PyCUDA and Theano have different object to store GPU Currently PyCUDA and Theano have different object to store GPU
data. The two implementations do not support the same set of features. data. The two implementations do not support the same set of features.
...@@ -40,3 +43,16 @@ You can use gpu function compiled with PyCUDA in a Theano op. Look ...@@ -40,3 +43,16 @@ You can use gpu function compiled with PyCUDA in a Theano op. Look
into the `HPCS2011 tutorial into the `HPCS2011 tutorial
<http://www.iro.umontreal.ca/~lisa/pointeurs/tutorial_hpcs2011_fixed.pdf>`_ for an example. <http://www.iro.umontreal.ca/~lisa/pointeurs/tutorial_hpcs2011_fixed.pdf>`_ for an example.
CUDAMat
=======
There is conversion function between CUDAMat object and Theano CudaNdArray. They are with the same principe as PyCUDA one's. They are in theano.misc.cudamat_utils.py
WARNING: there is a strange problem with stride/shape with those converter. The test to work need a transpose and reshape...
Gnumpy
======
There is conversion function between gnumpy garray object and Theano CudaNdArray. They are with the same principe as PyCUDA one's. They are in theano.misc.gnumpy_utils.py
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论