Represents an OpenCL platform. More...
Public Member Functions | |
ReadOnlyCollection< ComputeDevice > | QueryDevices () |
Gets a read-only collection of available ComputeDevice s on the ComputePlatform . | |
override string | ToString () |
Gets the string representation of the ComputePlatform . | |
Static Public Member Functions | |
static ComputePlatform | GetByHandle (IntPtr handle) |
Gets a ComputePlatform of a specified handle. | |
static ComputePlatform | GetByName (string platformName) |
Gets the first matching ComputePlatform of a specified name. | |
static ComputePlatform | GetByVendor (string platformVendor) |
Gets the first matching ComputePlatform of a specified vendor. | |
Properties | |
ReadOnlyCollection< ComputeDevice > | Devices [get] |
Gets a read-only collection of ComputeDevice s available on the ComputePlatform . | |
ReadOnlyCollection< string > | Extensions [get] |
Gets a read-only collection of extension names supported by the ComputePlatform . | |
string | Name [get] |
Gets the ComputePlatform name. | |
static ReadOnlyCollection < ComputePlatform > | Platforms [get] |
Gets a read-only collection of available ComputePlatform s. | |
string | Profile [get] |
Gets the name of the profile supported by the ComputePlatform . | |
string | Vendor [get] |
Gets the ComputePlatform vendor. | |
string | Version [get] |
Gets the OpenCL version supported by the ComputePlatform . |
Represents an OpenCL platform.
The host plus a collection of devices managed by the OpenCL framework that allow an application to share resources and execute kernels on devices in the platform.
static ComputePlatform Cloo.ComputePlatform.GetByHandle | ( | IntPtr | handle | ) | [static] |
Gets a ComputePlatform
of a specified handle.
handle | The handle of the queried ComputePlatform . |
ComputePlatform
of the matching handle or null
if none matches. static ComputePlatform Cloo.ComputePlatform.GetByName | ( | string | platformName | ) | [static] |
Gets the first matching ComputePlatform
of a specified name.
platformName | The name of the queried ComputePlatform . |
ComputePlatform
of the specified name or null
if none matches. static ComputePlatform Cloo.ComputePlatform.GetByVendor | ( | string | platformVendor | ) | [static] |
Gets the first matching ComputePlatform
of a specified vendor.
platformVendor | The vendor of the queried ComputePlatform . |
ComputePlatform
of the specified vendor or null
if none matches. ReadOnlyCollection<ComputeDevice> Cloo.ComputePlatform.QueryDevices | ( | ) |
Gets a read-only collection of available ComputeDevice
s on the ComputePlatform
.
ComputeDevice
s on the ComputePlatform
. This method resets the ComputePlatform.Devices
. This is useful if one or more of them become unavailable (ComputeDevice.Available
is false
) after a ComputeContext
and ComputeCommandQueue
s that use the ComputeDevice
have been created and commands have been queued to them. Further calls will trigger an OutOfResourcesComputeException
until this method is executed. You will also need to recreate any ComputeResource
that was created on the no longer available ComputeDevice
.
override string Cloo.ComputePlatform.ToString | ( | ) |
Gets the string representation of the ComputePlatform
.
ComputePlatform
. Reimplemented from Cloo.ComputeObject.
ReadOnlyCollection<ComputeDevice> Cloo.ComputePlatform.Devices [get] |
Gets a read-only collection of ComputeDevice
s available on the ComputePlatform
.
ReadOnlyCollection<string> Cloo.ComputePlatform.Extensions [get] |
Gets a read-only collection of extension names supported by the ComputePlatform
.
string Cloo.ComputePlatform.Name [get] |
Gets the ComputePlatform
name.
ReadOnlyCollection<ComputePlatform> Cloo.ComputePlatform.Platforms [static, get] |
Gets a read-only collection of available ComputePlatform
s.
string Cloo.ComputePlatform.Profile [get] |
Gets the name of the profile supported by the ComputePlatform
.
string Cloo.ComputePlatform.Vendor [get] |
Gets the ComputePlatform
vendor.
string Cloo.ComputePlatform.Version [get] |
Gets the OpenCL version supported by the ComputePlatform
.