Hey Toby!

As far as I know there is only partial support for cl_int only. The reason
behind is that each scalartype size requires hand-tuning... loading 8bit by
thread is extremely inefficient whether it is on GPU or CPU...
The kernel generator will probably be able to handle all these case when it
is more mature. On a side note, I don't really know how the compiler
handles :
long += int*int;
long += char*char;
float += char*char;
But I doubt that it can be translated efficiently (ie one cycle for this
operation), which is likely to ruin all of our compute bound kernels ...
GPUs are really designed for floating point computations.
I also think the use of integers/chars in the field of numerical computing
is fairly rare, except for permutations and cryptography, but I think
vector<float>::operator[](vector<int> const & index) is on the road.

Philippe


2013/9/19 Toby St Clere Smithe <m...@tsmithe.net>

> Toby St Clere Smithe <m...@tsmithe.net>
> writes:
> > I get a lot of errors like the below when I enable T = char (or other
> > integer numeric types) in PyViennaCL. The error always comes down to the
> > "request for member 'handle' in 'val'". Previously, it was in the
> > context of arithmetical functions like addition or element_pow, but here
> > it seems to be in the context of the copy constructor. I'm not sure why;
> > the code in question is:
>
> ...
>
> (fyi) I get the same error trying to find the matrix transpose with an
> integer scalar type, so I might just leave integer types disabled for
> now!
>
> Cheers,
>
> Toby
>
>
>
> ------------------------------------------------------------------------------
> LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
> 1,500+ hours of tutorials including VisualStudio 2012, Windows 8,
> SharePoint
> 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack
> includes
> Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
> _______________________________________________
> ViennaCL-devel mailing list
> ViennaCL-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/viennacl-devel
>
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
ViennaCL-devel mailing list
ViennaCL-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viennacl-devel

Reply via email to