Show / Hide Table of Contents

Struct SharedMemoryAllocator<T>

structure to allocate shared memory in device code

Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Hybridizer.Runtime.CUDAImports
Assembly: Hybridizer.Runtime.CUDAImports.dll
Syntax
[IntrinsicType("hybridizer::sharedmemoryallocator<>", NotVectorizable = true)]
public struct SharedMemoryAllocator<T>
    where T : struct
Type Parameters
Name Description
T
Examples
float[] a = new SharedMemoryAllocator<float>.allocate(32)

Methods

allocate(Int32)

Performs the allocation

Declaration
[ReturnTypeInference(VectorizerIntrinsicReturn.Unchanged)]
public T[] allocate(int count)
Parameters
Type Name Description
System.Int32 count

number of elements in the result array

Returns
Type Description
T[]
Back to top Generated by DocFX