Exemplo n.º 1
0
 /// <summary cref="CudaAPI.GetPointerAttribute(IntPtr, PointerAttribute, IntPtr)"/>
 internal override CudaError GetPointerAttribute(
     IntPtr targetPtr,
     PointerAttribute attribute,
     IntPtr devicePtr)
 {
     throw new NotSupportedException(RuntimeErrorMessages.CudaNotSupported);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Resolves a pointer-attribute value.
 /// </summary>
 /// <param name="targetPtr">The target pointer.</param>
 /// <param name="attribute">The attribute to resolve.</param>
 /// <param name="devicePtr">The pointer in device memory.</param>
 /// <returns>The error status.</returns>
 internal CudaError GetPointerAttribute(
     IntPtr targetPtr,
     PointerAttribute attribute,
     IntPtr devicePtr) =>
 cuPointerGetAttribute(
     targetPtr,
     attribute,
     devicePtr);
Exemplo n.º 3
0
 /// <summary cref="CudaAPI.GetPointerAttribute(IntPtr, PointerAttribute, IntPtr)"/>
 internal override CudaError GetPointerAttribute(
     IntPtr targetPtr,
     PointerAttribute attribute,
     IntPtr devicePtr)
 {
     return(cuPointerGetAttribute(
                targetPtr,
                attribute,
                devicePtr));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Resolves a pointer-attribute value.
 /// </summary>
 /// <param name="targetPtr">The target pointer.</param>
 /// <param name="attribute">The attribute to resolve.</param>
 /// <param name="devicePtr">The pointer in device memory.</param>
 /// <returns>The error status.</returns>
 internal abstract CudaError GetPointerAttribute(
     IntPtr targetPtr,
     PointerAttribute attribute,
     IntPtr devicePtr);
Exemplo n.º 5
0
 private static extern CudaError cuPointerGetAttribute(
     [In] IntPtr targetPtr,
     [In] PointerAttribute attribute,
     [In] IntPtr devicePtr);
Exemplo n.º 6
0
 public static extern CuResult PointerGetAttribute(IntPtr data, PointerAttribute attribute, CuDevicePtr ptr);