Allocates array on device of same size as supplied host array.

Namespace: Cudafy.Host
Assembly: Cudafy.Host (in Cudafy.Host.dll) Version: 1.0.4106.20172

Syntax

C#
public override T[] Allocate<T>(
	T[] hostArray
)
Visual Basic
Public Overrides Function Allocate(Of T) ( _
	hostArray As T() _
) As T()
Visual C++
public:
generic<typename T>
virtual array<T>^ Allocate(
	array<T>^ hostArray
) override

Parameters

hostArray
Type: array<T>[]()[][]
The host array.

Type Parameters

T
Blittable type.

Return Value

1D device array.

See Also