本文整理汇总了C#中ManagedCuda.BasicTypes.CUarray类的典型用法代码示例。如果您正苦于以下问题:C# CUarray类的具体用法?C# CUarray怎么用?C# CUarray使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CUarray类属于ManagedCuda.BasicTypes命名空间,在下文中一共展示了CUarray类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: cuMemcpyAtoA_v2
public static extern CUResult cuMemcpyAtoA_v2(CUarray dstArray, SizeT dstOffset, CUarray srcArray, SizeT srcOffset, SizeT ByteCount);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs
示例2: cuMemcpyHtoAAsync_v2
public static extern CUResult cuMemcpyHtoAAsync_v2(CUarray dstArray, SizeT dstOffset, [In] IntPtr srcHost, SizeT ByteCount, CUstream hStream);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs
示例3: cuSurfRefGetArray
public static extern CUResult cuSurfRefGetArray( ref CUarray phArray, CUsurfref hSurfRef );
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs
示例4: SynchronCopyFromArray1D
/// <summary>
/// Synchron copy 1D Array to host
/// </summary>
/// <param name="deviceArray"></param>
public void SynchronCopyFromArray1D(CUarray deviceArray)
{
SynchronCopyFromArray1D(deviceArray, 0);
}
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:8,代码来源:CudaRegisteredHostMemoryFixedTypes.cs
示例5: cuMipmappedArrayGetLevel
public static extern CUResult cuMipmappedArrayGetLevel(ref CUarray pLevelArray, CUmipmappedArray hMipmappedArray, uint level);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs
示例6: cuTexRefGetArray
public static extern CUResult cuTexRefGetArray( ref CUarray phArray, CUtexref hTexRef );
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs
示例7: cuMemcpyHtoA_v2
public static extern CUResult cuMemcpyHtoA_v2(CUarray dstArray, SizeT dstOffset, [In] cuDoubleComplex[] srcHost, SizeT ByteCount);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs
示例8: cuArray3DCreate_v2
public static extern CUResult cuArray3DCreate_v2(ref CUarray pHandle, ref CUDAArray3DDescriptor pAllocateArray);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs
示例9: cuMemcpyDtoA_v2
public static extern CUResult cuMemcpyDtoA_v2(CUarray dstArray, SizeT dstOffset, CUdeviceptr srcDevice, SizeT ByteCount);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs
示例10: cuMemcpyAtoD_v2
public static extern CUResult cuMemcpyAtoD_v2(CUdeviceptr dstDevice, CUarray srcArray, SizeT srcOffset, SizeT ByteCount);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs
示例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;
}
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:16,代码来源:CudaMipmappedArray.cs
示例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);
}
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:9,代码来源:CudaRegisteredHostMemoryFixedTypes.cs
示例13: cuMemcpyAtoHAsync_v2
public static extern CUResult cuMemcpyAtoHAsync_v2([Out] IntPtr dstHost, CUarray srcArray, SizeT srcOffset, SizeT ByteCount, CUstream hStream);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs
示例14: cuArrayDestroy
public static extern CUResult cuArrayDestroy( CUarray hArray );
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs
示例15: cuArray3DGetDescriptor_v2
public static extern CUResult cuArray3DGetDescriptor_v2(ref CUDAArray3DDescriptor pArrayDescriptor, CUarray hArray);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs
示例16: cuMemcpyAtoH_v2
public static extern CUResult cuMemcpyAtoH_v2([Out] cuDoubleComplex[] dstHost, CUarray srcArray, SizeT srcOffset, SizeT ByteCount);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs
示例17: cuTexRefSetArray
public static extern CUResult cuTexRefSetArray(CUtexref hTexRef, CUarray hArray, CUTexRefSetArrayFlags Flags);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs
示例18: cuSurfRefSetArray
public static extern CUResult cuSurfRefSetArray(CUsurfref hSurfRef, CUarray hArray, CUSurfRefSetFlags Flags);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs
示例19: cuGraphicsSubResourceGetMappedArray
public static extern CUResult cuGraphicsSubResourceGetMappedArray( ref CUarray pArray, CUgraphicsResource resource, uint arrayIndex, uint mipLevel );
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs
示例20: SynchronCopyToArray1D
/// <summary>
/// Synchron copy host to 1D Array
/// </summary>
/// <param name="deviceArray"></param>
/// <param name="offset"></param>
public void SynchronCopyToArray1D(CUarray deviceArray, SizeT offset)
{
if (disposed) throw new ObjectDisposedException(this.ToString());
res = DriverAPINativeMethods.SynchronousMemcpy_v2.cuMemcpyHtoA_v2(deviceArray, offset, this._intPtr, SizeInBytes);
Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuMemcpyHtoA", res));
if (res != CUResult.Success) throw new CudaException(res);
}
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:12,代码来源:CudaRegisteredHostMemoryFixedTypes.cs
注:本文中的ManagedCuda.BasicTypes.CUarray类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论