Re: [eigen] Implementing a gpuBlock type

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Hi,

in Block.h you can see two variants (two partial specializations) of
the Block class: one in the DirectAccess case (i.e. when we can read
the coefficients directly from memory, for example when taking a block
in a plain matrix, matrix.block(...)) and one in the non-DirectAccess
case (when we can't read coeffs from memory, for example when taking a
block in a read-only expression like (mat1+mat2).block(...)).

Since you're talking about pointers, you're in the DirectAccess case.

As you can see, in that case, we inherit from MapBase. So see the file
MapBase.h.

Good luck,
Benoit

2010/5/12  <vincent.lejeune@xxxxxxxxxx>:
>
> Hi,
>
>
>
> I would like to create a gpuBlock type, which is similar to the Block type
>
> in Eigen.
>
> However, I don't really know the internals of the Block type...
>
>
>
> I would like my block to take a pointer on a matrix stored on gpu, to work
>
> with it.
>
> However, there is no clear pointer assignment in the block constructor. I
>
> assume that the whole assignement stuff is done by the XprType thing, but I
>
> don't know what it is, and how to make my own one that can deal with my
>
> matrix on my GPU.
>
> Which header should I look at first ?
>
> Thx
>
>
>



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/