コード例 #1
0
 /// <summary cref="CudaAPI.GetPointerAttribute(IntPtr, PointerAttribute, IntPtr)"/>
 internal override CudaError GetPointerAttribute(
     IntPtr targetPtr,
     PointerAttribute attribute,
     IntPtr devicePtr)
 {
     throw new NotSupportedException(RuntimeErrorMessages.CudaNotSupported);
 }
コード例 #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);
コード例 #3
0
 /// <summary cref="CudaAPI.GetPointerAttribute(IntPtr, PointerAttribute, IntPtr)"/>
 internal override CudaError GetPointerAttribute(
     IntPtr targetPtr,
     PointerAttribute attribute,
     IntPtr devicePtr)
 {
     return(cuPointerGetAttribute(
                targetPtr,
                attribute,
                devicePtr));
 }
コード例 #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);
コード例 #5
0
 private static extern CudaError cuPointerGetAttribute(
     [In] IntPtr targetPtr,
     [In] PointerAttribute attribute,
     [In] IntPtr devicePtr);
コード例 #6
0
 public static extern CuResult PointerGetAttribute(IntPtr data, PointerAttribute attribute, CuDevicePtr ptr);