ILNumerics Ultimate VS

ILMathfreeT Method

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Frees the handle for a memory region after use. This is for expert users in rare low-level scenarios only. Use the common array creation functions instead!

[ILNumerics Computing Engine]

Namespace:  ILNumerics
Assembly:  ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public static void free<T>(
	MemoryHandle handle,
	uint deviceIndex,
	bool nocache = false
)

Parameters

handle
Type: ILNumerics.Core.MemoryLayerMemoryHandle
The handle pointing to the allocated memory region.
deviceIndex
Type: SystemUInt32
The index of the device where the handles memory lives on. This must be the same device as the one used during allocation.
nocache (Optional)
Type: SystemBoolean
[Optional] Determines whether the memory is being returned to the OS. Default: false - the memory is cached into a pool for quick reusing.

Type Parameters

T
Element type used to acquire the handle.
Remarks

After having acquired the handle of a memory region on a device and having finished working with the memory make sure to release the memory back to the ILNumerics memory manager.

[ILNumerics Computing Engine]

See Also

Reference

MathInternal.New``1(UInt64, UInt32, Boolean)