コード例 #1
0
 public void UpdatePointerMode(
     CuBlas <AutomaticMode> parent,
     CuBlasPointerMode pointerMode)
 {
     // Setup the internal pointer mode ot the desired one
     parent.PointerMode = pointerMode;
 }
コード例 #2
0
            /// <summary>
            /// Constructs a new pointer scope.
            /// </summary>
            /// <param name="parent">The parent pointer scope.</param>
            /// <param name="pointerMode">The new pointer mode.</param>
            internal PointerModeScope(CuBlas <TPointerModeHandler> parent, CuBlasPointerMode pointerMode)
            {
                Debug.Assert(parent != null, "Invalid parent");

                Parent             = parent;
                OldPointerMode     = parent.PointerMode;
                parent.PointerMode = pointerMode;
            }
コード例 #3
0
 public void UpdatePointerMode(
     CuBlas <ManualMode> parent,
     CuBlasPointerMode pointerMode)
 {
     // Do nothing
 }