Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6624747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:41:27+00:00 2026-05-25T21:41:27+00:00

In C++ AMP, how does one detect and enumerate all C++ AMP accelerators? Don

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T21:41:28+00:00Added an answer on May 25, 2026 at 9:41 pm

    Looks like it’s pretty simple: concurrency::get_accelerators(); Daniel Moth comments:

    in the VS 11 Developer Preview bits, you simply call concurrency::get_accelerators();. We are working to make that more discoverable for the Beta, whenever that is.

    Here’s my code:

    #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;
        });
    }
    

    Update 1:

    As of VS 11 Beta, this is now accelerator::get_all();

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a ColdFusion script that does: <cfset content = replace(content,&##147;,,all)> Which replaces &147;
How does one go about authoring a Regular Expression that matches against all strings
does anybody have any experience writing up a offline data storage & access app
How does one do image processing & manipulation in an iPhone application? I would
How does one get the HTML5 Audio tag to work in a webworks app
How does one check if no connection is possible (that is, server is down...)
How does one do this? Couldn't find any examples online... (using rspec 2.5.0 &
Does any one know when is the best time to stop an NSTimer that
Possible Duplicate: What does map(&:name) mean in Ruby? I was watching a railscast and
In a C++ function like this: int& getNumber(); what does the & mean? Is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.