とてもシンプルなようです:concurrency::get_accelerators();
Daniel Mothのコメント:
VS 11 Developer Previewビットでは、単にconcurrency :: get_accelerators();を呼び出します。ベータ版では、いつでもそれを見つけやすくするために取り組んでいます。
これが私のコードです:
#include <iostream>
#include "stdafx.h"
#include "amp.h"
using namespace std;
using namespace concurrency;
void inspect_accelerators()
{
auto accelerators = accelerator::get_all();
for_each(begin(accelerators), end(accelerators),[=](accelerator acc){
wcout << "New accelerator: " << acc.description << endl;
wcout << "is_debug = " << acc.is_debug << endl;
wcout << "is_emulated = " << acc.is_emulated <<endl;
wcout << "dedicated_memory = " << acc.dedicated_memory << endl;
wcout << "device_path = " << acc.device_path << endl;
wcout << "has_display = " << acc.has_display << endl;
wcout << "version = " << (acc.version >> 16) << '.' << (acc.version & 0xFFFF) << endl;
});
}
アップデート1:
VS 11ベータ版では、これはアクセラレーター:: get_all();になりました。