Re: [ViennaCL-devel] Enabling integer types in PyViennaCL

2013-10-01 Thread Toby St Clere Smithe
Karl Rupp  writes:
> This is now fixed. You should be able to instantiate the basic types 
> with char, uchar, short, ushort as well. So far I have explicitly tested 
> this only with vector<>, though.

Excellent. I'll try and get this enabled in the next couple of days, and
then have my test routines iterate over more numeric types, and we'll
see what's thrown up. My priority at the moment though is getting a
Debian package built -- it's remarkably fiddly and ill-documented, but I
hope to have something ready by the end of the week.

Best,

Toby


--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
___
ViennaCL-devel mailing list
ViennaCL-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viennacl-devel


Re: [ViennaCL-devel] Enabling integer types in PyViennaCL

2013-10-01 Thread Karl Rupp
Hi Toby,

 > I get a lot of errors like the below when I enable T = char (or other
> integer numeric types) in PyViennaCL. (...)

This is now fixed. You should be able to instantiate the basic types 
with char, uchar, short, ushort as well. So far I have explicitly tested 
this only with vector<>, though.

Best regards,
Karli


--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
___
ViennaCL-devel mailing list
ViennaCL-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viennacl-devel


Re: [ViennaCL-devel] Enabling integer types in PyViennaCL

2013-09-18 Thread Karl Rupp
Hi Toby,

> 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:

There are tests for viennacl::vector and viennacl::vector 
checking the full set of reasonable operations. Similar for matrix<>. I 
haven't checked vector and vector explicitly yet, as they 
require some work in the tests to avoid overflows.


> I wanted to enable integer types for pencils-down, hoping that all I'd
> have to do is add a macro describing the class, but it might be more
> than I can fit in.

There are still a lot of technical difficulties in supporting arbitrary 
combinations of different integer types. One of them is that pow() does 
not support integers in OpenCL. I suggest that for the initial release 
you disable integers per default.

Best regards,
Karli

--
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


Re: [ViennaCL-devel] Enabling integer types in PyViennaCL

2013-09-18 Thread Philippe Tillet
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::operator[](vector const & index) is on the road.

Philippe


2013/9/19 Toby St Clere Smithe 

> Toby St Clere Smithe 
> 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


Re: [ViennaCL-devel] Enabling integer types in PyViennaCL

2013-09-18 Thread Toby St Clere Smithe
Toby St Clere Smithe 
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