Performs a default host memory allocation.
Namespace: Cudafy.HostAssembly: Cudafy.Host (in Cudafy.Host.dll) Version: 1.0.4106.20172
Syntax
C# |
---|
public IntPtr HostAllocate<T>( int x, int y, int z ) |
Visual Basic |
---|
Public Function HostAllocate(Of T) ( _ x As Integer, _ y As Integer, _ z As Integer _ ) As IntPtr |
Visual C++ |
---|
public: generic<typename T> IntPtr HostAllocate( int x, int y, int z ) |
Parameters
- x
- Type: System..::..Int32
The x size.
- y
- Type: System..::..Int32
The y size.
- z
- Type: System..::..Int32
The z size.
Type Parameters
- T
Return Value
Pointer to allocated memory.
Remarks
Remember to free this memory with HostFree.