Re: [ViennaCL-devel] OpenCL C++ API

2014-04-29 Thread Philippe Tillet
Hi, 2014-04-29 15:59 GMT+02:00 Karl Rupp r...@iue.tuwien.ac.at: Hi, So I can't help but to bring up this topic :) Is there any reason why we're using the OpenCL C API instead of the C++ one? Yes, the reason is simple: The C++ API was standardized quite some time *after* the

Re: [ViennaCL-devel] OpenCL C++ API

2014-04-29 Thread Philippe Tillet
Hi, 2014-04-29 16:54 GMT+02:00 Karl Rupp r...@iue.tuwien.ac.at: Hi, It seems like we could save several thousands of lines of code (and gain a lot of clarity) by using the C++ API directly. Well, I'm not so sure about that actually. I'd more conservatively

Re: [ViennaCL-devel] OpenCL C++ API

2014-04-29 Thread Karl Rupp
Hi, See above :-) There are good reasons for dropping infos(), particularly as we cannot assume that each OpenCL SDK returns the requested information as rapidly as we might need it. Hmm, then a good solution would be to internally use infos whenever a viennacl::ocl object is