accelerator Class

An accelerator is a hardware capability that is optimized for data-parallel computing. An accelerator may be a device attached to a PCIe bus (such as a GPU), or it might be an extended instruction set on the main CPU.

class accelerator;

Members

Public Constructors

Name

Description

accelerator::accelerator Constructor

Initializes a new instance of the accelerator class.

accelerator::~accelerator Destructor

Destroys the accelerator object.

Public Methods

Name

Description

accelerator::create_view Method

Creates and returns an accelerator_view object on this accelerator.

accelerator::get_all Method

Returns a vector of accelerator objects that represent all the available accelerators.

accelerator::get_auto_selection_view Method

Returns the auto-selection accelerator_view.

accelerator::get_dedicated_memory Method

Returns the dedicated memory for the accelerator, in kilobytes.

accelerator::get_default_cpu_access_type Method

Returns the default access_type for buffers created on this accelerator.

accelerator::get_default_view Method

Returns the default accelerator_view object that is associated with the accelerator.

accelerator::get_description Method

Returns a short description of the accelerator device.

accelerator::get_device_path Method

Returns the path of the device.

accelerator::get_has_display Method

Determines whether the accelerator is attached to a display.

accelerator::get_is_debug Method

Determines whether the accelerator has the DEBUG layer enabled for extensive error reporting.

accelerator::get_is_emulated Method

Determines whether the accelerator is emulated.

accelerator::get_supports_cpu_shared_memory Method

Determines whether the accelerator supports shared memory

accelerator::get_supports_double_precision Method

Determines whether the accelerator is attached to a display.

accelerator::get_supports_limited_double_precision Method

Determines whether the accelerator has limited support for double-precision math.

accelerator::get_version Method

Returns the version of the accelerator.

accelerator::set_default Method

Returns the path of the default accelerator.

accelerator::set_default_cpu_access_type Method

Sets the default CPU access_type for arrays and implicit memory allocations made on this accelerator.

Public Operators

Name

Description

accelerator::operator!= Operator

Compares this accelerator object with another and returns false if they are the same; otherwise, returns true.

accelerator::operator= Operator

Copies the contents of the specified accelerator object to this one.

accelerator::operator== Operator

Compares this accelerator object with another and returns true if they are the same; otherwise, returns false.

Public Data Members

Name

Description

accelerator::cpu_accelerator Data Member

Gets a string constant for the CPU accelerator.

accelerator::dedicated_memory Data Member

Gets the dedicated memory for the accelerator, in kilobytes.

accelerator::default_accelerator Data Member

Gets a string constant for the default accelerator.

accelerator::default_cpu_access_type Data Member

Gets or sets the default CPU access_type for arrays and implicit memory allocations made on this accelerator.

accelerator::default_view Data Member

Gets the default accelerator_view object that is associated with the accelerator.

accelerator::description Data Member

Gets a short description of the accelerator device.

accelerator::device_path Data Member

Gets the path of the device.

accelerator::direct3d_ref Data Member

Gets a string constant for a Direct3D reference accelerator.

accelerator::direct3d_warp Data Member

Gets the string constant for an accelerator object that you can use for executing C++ AMP code on multi-core CPUs that use Streaming SIMD Extensions (SSE).

accelerator::has_display Data Member

Gets a Boolean value that indicates whether the accelerator is attached to a display.

accelerator::is_debug Data Member

Indicates whether the accelerator has the DEBUG layer enabled for extensive error reporting.

accelerator::is_emulated Data Member

Indicates whether the accelerator is emulated.

accelerator::supports_cpu_shared_memory Data Member

Indicates whether the accelerator supports shared memory.

accelerator::supports_double_precision Data Member

Indicates whether the accelerator supports double-precision math.

accelerator::supports_limited_double_precision Data Member

Indicates whether the accelerator has limited support for double-precision math.

accelerator::version Data Member

Gets the version of the accelerator.

Inheritance Hierarchy

accelerator

Remarks

An accelerator is a hardware capability that is optimized for data-parallel computing. An accelerator is often a discrete GPU, but it can also be a virtual host-side entity such as a DirectX REF device, a WARP (a CPU-side device that is accelerated by means of SSE instructions), or the CPU itself.

You can construct an accelerator object by enumerating the available devices, or by getting the default device, the reference device, or the WARP device.

Requirements

Header: amprt.h

Namespace: Concurrency

See Also

Reference

Concurrency Namespace (C++ AMP)