Top Description Fields Constructors Methods
org.lwjgl.opencl

public final Class KHRInitializeMemory

extends Object
Class Inheritance

Native bindings to the khr_initialize_memory extension.

This extension adds support for initializing local and private memory before a kernel begins execution.

Memory is allocated in various forms in OpenCL both explicitly (global memory) or implicitly (local, private memory). This allocation so far does not provide a straightforward mechanism to initialize the memory on allocation. In other words what is lacking is the equivalent of calloc for the currently supported malloc like capability. This functionality is useful for a variety of reasons including ease of debugging, application controlled limiting of visibility to previous contents of memory and in some cases, optimization.

Field Summary

Modifier and TypeField and Description
public static final int
CL_CONTEXT_MEMORY_INITIALIZE_KHR

Accepted as a property name in the properties parameter of CreateContext.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CL_CONTEXT_MEMORY_INITIALIZE_KHRback to summary
public static final int CL_CONTEXT_MEMORY_INITIALIZE_KHR

Accepted as a property name in the properties parameter of CreateContext.

Describes which memory types for the context must be initialized. This is a bit-field, where the following values are currently supported:

  • CL_CONTEXT_MEMORY_INITIALIZE_LOCAL_KHR – Initialize local memory to zeros.
  • CL_CONTEXT_MEMORY_INITIALIZE_PRIVATE_KHR – Initialize private memory to zeros.

Constructor Detail

KHRInitializeMemoryback to summary
private KHRInitializeMemory()