Platforms to show: All Mac Windows Linux Cross-Platform

CLContextMBS class   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
class OpenCL MBS MacFrameworks Plugin 11.1 ✅ Yes ❌ No ❌ No ✅ Yes All
This item is deprecated and should no longer be used.
The OpenCL class for a context.
Example
dim devices(-1) as CLDeviceMBS = OpenCLMBS.AllDevices(CLDeviceMBS.kDeviceTypeGPU)
dim device as CLDeviceMBS = devices(0) // we use first one

// Create a context
dim context as new CLContextMBS(device, CLContextMBS.kErrorModeLogMessagesToSystemLog)

Contexts are used by the OpenCL runtime for managing objects such as command-queues, memory, program and kernel objects and for executing kernels on one or more devices specified in the context.

Error mode constants

Constant Value Description
kErrorModeIgnore 0
kErrorModeLogMessagesToStderr 3 Sends all log messages to the file descriptor stderr.
kErrorModeLogMessagesToStdout 2 Sends all log messages to the file descriptor stdout.
kErrorModeLogMessagesToSystemLog 1 Fowards on all log messages to the Apple System Logger.

This class has no sub classes.

Some methods using this class:

Some properties using for this class:

Some examples using this class:

Blog Entries


The items on this page are in the following plugins: MBS MacFrameworks Plugin.


CLCommandQueueMBS   -   CLDeviceMBS


The biggest plugin in space...