A user can switch contexts easily with

long id = 1;
viennacl::ocl::switch_context(id);

Is there a way to determine the current context index?  In this case it
would return 1?

The corollary for platform is:

viennacl::ocl::current_context().platform_index()


I also don't see a method for device_index() either.  But it is possible I
am simply overlooking this somewhere in the documentation.

Regards,
Charles
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
ViennaCL-devel mailing list
ViennaCL-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viennacl-devel

Reply via email to