Let’s assume that I have two GPUs installed on my PC: one with CUDA and one with OpenCL. I’d like to write a script that checks all GPUs and sets CUDA GPU as active rendering device if it’s available whereas OpenCL GPU should be the second best option to choose.
How can I get all devices and their types in 2.8? In previous versions I used compute_device_type, but it’s outdated now.
Just out of curiosity, what will this be used for? Will admit rarely do I see mixed systems. And usually if one has, one would start two versions with two saved files for both type of GPU’s to run … though that is annoying
Still I’m only AMD now, but with RTX Optix support, that might change in the future, hence the query.