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 |
---|---|
Initializes a new instance of the accelerator class. |
|
Destroys the accelerator object. |
Public Methods
Name |
Description |
---|---|
Creates and returns an accelerator_view object on this accelerator. |
|
Returns a vector of accelerator objects that represent all the available accelerators. |
|
Returns the auto-selection accelerator_view. |
|
Returns the dedicated memory for the accelerator, in kilobytes. |
|
Returns the default access_type for buffers created on this accelerator. |
|
Returns the default accelerator_view object that is associated with the accelerator. |
|
Returns a short description of the accelerator device. |
|
Returns the path of the device. |
|
Determines whether the accelerator is attached to a display. |
|
Determines whether the accelerator has the DEBUG layer enabled for extensive error reporting. |
|
Determines whether the accelerator is emulated. |
|
Determines whether the accelerator supports shared memory |
|
Determines whether the accelerator is attached to a display. |
|
Determines whether the accelerator has limited support for double-precision math. |
|
Returns the version of the accelerator. |
|
Returns the path of the default accelerator. |
|
Sets the default CPU access_type for arrays and implicit memory allocations made on this accelerator. |
Public Operators
Name |
Description |
---|---|
Compares this accelerator object with another and returns false if they are the same; otherwise, returns true. |
|
Copies the contents of the specified accelerator object to this one. |
|
Compares this accelerator object with another and returns true if they are the same; otherwise, returns false. |
Public Data Members
Name |
Description |
---|---|
Gets a string constant for the CPU accelerator. |
|
Gets the dedicated memory for the accelerator, in kilobytes. |
|
Gets a string constant for the default accelerator. |
|
Gets or sets the default CPU access_type for arrays and implicit memory allocations made on this accelerator. |
|
Gets the default accelerator_view object that is associated with the accelerator. |
|
Gets a short description of the accelerator device. |
|
Gets the path of the device. |
|
Gets a string constant for a Direct3D reference accelerator. |
|
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). |
|
Gets a Boolean value that indicates whether the accelerator is attached to a display. |
|
Indicates whether the accelerator has the DEBUG layer enabled for extensive error reporting. |
|
Indicates whether the accelerator is emulated. |
|
Indicates whether the accelerator supports shared memory. |
|
Indicates whether the accelerator supports double-precision math. |
|
Indicates whether the accelerator has limited support for double-precision math. |
|
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