Re: [ViennaCL-devel] Switching context device types

2016-01-15 Thread Karl Rupp
Hi Charles, > I know I can set a device type with: > > viennacl::ocl::set_context_device_type(id, viennacl::ocl::gpu_tag()); > > but is there a where for me to subsequently change that to `cpu_tag()` > within the same main() function? Depends on what you want to achieve. You can call set_contex

[ViennaCL-devel] Switching context device types

2016-01-15 Thread Charles Determan
Greetings, I know I can set a device type with: viennacl::ocl::set_context_device_type(id, viennacl::ocl::gpu_tag()); but is there a where for me to subsequently change that to `cpu_tag()` within the same main() function? I see I can change devices with: viennacl::ocl::current_context().switch