Re: [eigen] Implementing a gpuBlock type |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Implementing a gpuBlock type
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Wed, 12 May 2010 07:13:02 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=Lg3rDVsE+DQAavOrsIaBsGzZKacLuhPx29AMj0ZQddc=; b=HPq+MtCYLJ7iC5rnK9saKP4R+jxx6XaHbE6TVWIe29+VGzNO6Wy/cSYQ99DFu4xRTl eoooHFvQuqt47Y/onaHqex+BjOHHu/KXhyq3sg2HuA+Qow+5UFNAKCUY+NeSldDlM6zU pvxUukrjZUIzDID5lQvN9BUhEx5oCG79GOZ7s=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=jJDP4sPJQWBUKClQt/TQjybgqAwpbaOuHo/yPVmGdElH25pb+iv8Z8ZqSer0Ay1Bj2 jBWMxM0GN9eGzP+RAl4FmwSkglSgc/5ZjTyw7SKntyEHe/DNwyx8qyBv5xtH9thrjW17 BXhJnDXGhUVJnrsqkfZReFRUECNT37SNmgi2U=
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
>
>
>