Allocates a 1D array in shared memory.

Namespace: Cudafy
Assembly: Cudafy (in Cudafy.dll) Version: 1.0.4106.20170

Syntax

C#
public T[] AllocateShared<T>(
	string varName,
	int x
)
Visual Basic
Public Function AllocateShared(Of T) ( _
	varName As String, _
	x As Integer _
) As T()
Visual C++
public:
generic<typename T>
array<T>^ AllocateShared(
	String^ varName, 
	int x
)

Parameters

varName
Type: System..::..String
Key of the variable.
x
Type: System..::..Int32
The x size.

Type Parameters

T
Blittable type.

Return Value

Pointer to the shared memory.

See Also