CLContextMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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


💬 Ask a question or report a problem