In C++ AMP, how does one detect and enumerate all C++ AMP accelerators?
Don McCrady distributed an app here that enumerates non-emulated accelerators. Though I had a DX11 card (GTX 260), I didn’t see any available accelerators. Daniel Moth shows here how to query an individual accelerator, but I couldn’t find how do enumerate all (emulated and non) accelerators using a C++ AMP call.
Looks like it’s pretty simple:
concurrency::get_accelerators();Daniel Moth comments:Here’s my code:
Update 1:
As of VS 11 Beta, this is now accelerator::get_all();