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