Documentation
¶
Index ¶
Constants ¶
View Source
const ( // PlatformServerAddressInfo is the PlatformInfoName that shall hold the server address of the simulator. // This is a forward from the grpc interface, so that the user of this package doesn't additionally have to // import the grpc package, just for this constant. PlatformServerAddressInfo = sim.PlatformServerAddressInfo )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents the simulator client, to be used in tests.
func NewClient ¶
NewClient attempts to connect to the given address. Retrieve the value of the address by querying the OpenCL platform for the PlatformServerAddressInfo string.
func (*Client) Disconnect ¶
func (client *Client) Disconnect()
Disconnect shuts down the connection.
type Devices ¶
type Devices struct {
// contains filtered or unexported fields
}
Devices represents interactions on the devices layer.
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
Platform represents interactions on the platform layer.
func (*Platform) PrepareExtensionFunction ¶
PrepareExtensionFunction requests to prepare an extension function for testing. The returned value is the address value of the function pointer. Note that the simulator has a limited amount of functions to return.
Click to show internal directories.
Click to hide internal directories.