Share via


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 acceleratorview object on this accelerator.

accelerator::get_all Method

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

accelerator::get_dedicated_memory Method

Returns the dedicated memory for the accelerator, in kilobytes.

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 to the device.

accelerator::get_has_display Method

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

accelerator::get_is_debug Method

Returns a Boolean value that indicates whether the accelerator has the DEBUG layer enabled for extensive error reporting.

accelerator::get_is_emulated Method

Returns a Boolean value that indicates whether the accelerator is emulated.

accelerator::get_supports_double_precision Method

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

accelerator::get_supports_limited_double_precision Method

Returns a Boolean value that indicates 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 to the default 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_view Data Member

Gets the default accelerator_view objct 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 to 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 your C++ AMP code on multi-core CPUs using 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

Gets a Boolean value that indicates whether the accelerator has the DEBUG layer enabled for extensive error reporting.

accelerator::is_emulated Data Member

Gets a Boolean value that indicates whether the accelerator is emulated.

accelerator::supports_double_precision Data Member

Gets a Boolean value that indicates whether the accelerator supports doubles precision math.

accelerator::supports_limited_double_precision Data Member

Gets a Boolean value that 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)