[ViennaCL-devel] Benchmark GUI Platform Device Chooser

2014-08-13 Thread Namik Karovic
Hi, I'm currently implementing the platform and device chooser, and could use some help. So far I've managed to create custom contexts for each device. I iterate through all available platforms, and setup a new context for every device in a platform. Here's how that looks: //---PLATFORMS---

Re: [ViennaCL-devel] Benchmark GUI Platform Device Chooser

2014-08-13 Thread Toby St Clere Smithe
Hi all, Karl Rupp r...@iue.tuwien.ac.at writes: I looked at Chap. 10, but didn't find a way to disable the auto context creation. I wish to disable it because it would make interaction with the UI a lot easier. Since the auto(0) context fails to add all devices, and I'm creating additional

Re: [ViennaCL-devel] Benchmark GUI Platform Device Chooser

2014-08-13 Thread Namik Karovic
Hey Karl, Most importantly, it is necessary to run the context setup before any of the ViennaCL objects are created. Also, setup_context() takes the context ID as the first argument, not the platform ID. You only have one device per context, so there is no need to switch the device.

Re: [ViennaCL-devel] Benchmark GUI Platform Device Chooser

2014-08-13 Thread Namik Karovic
Hey hey, I admit I may have panicked a bit too much. After playing around with it a little more, I now understand why it reported different context ids. *They weren't context ids, they were platform ids.* I was comparing my context counter to the

Re: [ViennaCL-devel] Benchmark GUI Platform Device Chooser

2014-08-13 Thread Namik Karovic
Hey Matt, That looks like you didn't update Benchmark's ViennaCL copy in the external/viennacl folder. Just navigate to that folder with cmd and do a git pull. That should update ViennaCL and fix this. Regards, Namik On Thu, Aug 14, 2014 at 1:59 AM, Matthew Musto matthew.mu...@gmail.com wrote: