本文整理汇总了C#中ManagedCuda.BasicTypes.CUarray类的典型用法代码示例。如果您正苦于以下问题:C# CUarray类的具体用法?C# CUarray怎么用?C# CUarray使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CUarray类属于ManagedCuda.BasicTypes命名空间,在下文中一共展示了CUarray类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: cuMemcpyAtoA_v2
public static extern CUResult cuMemcpyAtoA_v2(CUarray dstArray, SizeT dstOffset, CUarray srcArray, SizeT srcOffset, SizeT ByteCount);
示例2: cuMemcpyHtoAAsync_v2
public static extern CUResult cuMemcpyHtoAAsync_v2(CUarray dstArray, SizeT dstOffset, [In] IntPtr srcHost, SizeT ByteCount, CUstream hStream);
示例3: cuSurfRefGetArray
public static extern CUResult cuSurfRefGetArray( ref CUarray phArray, CUsurfref hSurfRef );
示例4: SynchronCopyFromArray1D
/// <summary>
/// Synchron copy 1D Array to host
/// </summary>
/// <param name="deviceArray"></param>
public void SynchronCopyFromArray1D(CUarray deviceArray)
{
SynchronCopyFromArray1D(deviceArray, 0);
}
示例5: cuMipmappedArrayGetLevel
public static extern CUResult cuMipmappedArrayGetLevel(ref CUarray pLevelArray, CUmipmappedArray hMipmappedArray, uint level);
示例6: cuTexRefGetArray
public static extern CUResult cuTexRefGetArray( ref CUarray phArray, CUtexref hTexRef );
示例7: cuMemcpyHtoA_v2
public static extern CUResult cuMemcpyHtoA_v2(CUarray dstArray, SizeT dstOffset, [In] cuDoubleComplex[] srcHost, SizeT ByteCount);
示例8: cuArray3DCreate_v2
public static extern CUResult cuArray3DCreate_v2(ref CUarray pHandle, ref CUDAArray3DDescriptor pAllocateArray);
示例9: cuMemcpyDtoA_v2
public static extern CUResult cuMemcpyDtoA_v2(CUarray dstArray, SizeT dstOffset, CUdeviceptr srcDevice, SizeT ByteCount);
示例10: cuMemcpyAtoD_v2
public static extern CUResult cuMemcpyAtoD_v2(CUdeviceptr dstDevice, CUarray srcArray, SizeT srcOffset, SizeT ByteCount);
示例11: GetLevelAsCUArray
/// <summary>
/// Returns a CUDA array that represents a single mipmap level
/// of the CUDA mipmapped array.
/// </summary>
/// <param name="level">Mipmap level</param>
public CUarray GetLevelAsCUArray(uint level)
{
CUarray array = new CUarray();
res = DriverAPINativeMethods.ArrayManagement.cuMipmappedArrayGetLevel(ref array, _mipmappedArray, level);
Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuMipmappedArrayGetLevel", res));
if (res != CUResult.Success)
throw new CudaException(res);
return array;
}
示例12: AsyncCopyFromArray1D
/// <summary>
/// Asynchron copy 1D Array to host
/// </summary>
/// <param name="deviceArray"></param>
/// <param name="stream"></param>
public void AsyncCopyFromArray1D(CUarray deviceArray, CUstream stream)
{
AsyncCopyFromArray1D(deviceArray, stream, 0);
}
示例13: cuMemcpyAtoHAsync_v2
public static extern CUResult cuMemcpyAtoHAsync_v2([Out] IntPtr dstHost, CUarray srcArray, SizeT srcOffset, SizeT ByteCount, CUstream hStream);
示例14: cuArrayDestroy
public static extern CUResult cuArrayDestroy( CUarray hArray );
示例15: cuArray3DGetDescriptor_v2
public static extern CUResult cuArray3DGetDescriptor_v2(ref CUDAArray3DDescriptor pArrayDescriptor, CUarray hArray);