diff --git a/Src/ILGPU/Runtime/ArrayViewExtensions.Generated.tt b/Src/ILGPU/Runtime/ArrayViewExtensions.Generated.tt index 1e45bf57a..a87d04998 100644 --- a/Src/ILGPU/Runtime/ArrayViewExtensions.Generated.tt +++ b/Src/ILGPU/Runtime/ArrayViewExtensions.Generated.tt @@ -712,6 +712,7 @@ namespace ILGPU.Runtime /// The page locked memory. /// This method is not supported on accelerators. [NotInsideKernel] + [Obsolete("Use PageLockScope.ArrayView instead")] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void CopyToPageLockedAsync( this <#= viewName #> source, @@ -729,6 +730,7 @@ namespace ILGPU.Runtime /// The page locked memory. /// This method is not supported on accelerators. [NotInsideKernel] + [Obsolete("Use PageLockScope.ArrayView instead")] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void CopyToPageLockedAsync( this <#= viewName #> source, @@ -746,6 +748,7 @@ namespace ILGPU.Runtime /// The page locked memory. /// This method is not supported on accelerators. [NotInsideKernel] + [Obsolete("Use PageLockScope.ArrayView instead")] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void CopyFromPageLockedAsync( this <#= viewName #> target, @@ -763,6 +766,7 @@ namespace ILGPU.Runtime /// The page locked memory. /// This method is not supported on accelerators. [NotInsideKernel] + [Obsolete("Use PageLockScope.ArrayView instead")] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void CopyFromPageLockedAsync( this <#= viewName #> target, @@ -792,6 +796,7 @@ namespace ILGPU.Runtime /// This method is not supported on accelerators. /// [NotInsideKernel] + [Obsolete("Use PageLockScope.ArrayView instead")] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void CopyToPageLockedAsync( this <#= typeName #>.<#= strideName #>> source, @@ -812,6 +817,7 @@ namespace ILGPU.Runtime /// This method is not supported on accelerators. /// [NotInsideKernel] + [Obsolete("Use PageLockScope.ArrayView instead")] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void CopyToPageLockedAsync( this <#= typeName #>.<#= strideName #>> source, @@ -832,6 +838,7 @@ namespace ILGPU.Runtime /// This method is not supported on accelerators. /// [NotInsideKernel] + [Obsolete("Use PageLockScope.ArrayView instead")] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void CopyFromPageLockedAsync( this <#= typeName #>.<#= strideName #>> target, @@ -855,6 +862,7 @@ namespace ILGPU.Runtime /// This method is not supported on accelerators. /// [NotInsideKernel] + [Obsolete("Use PageLockScope.ArrayView instead")] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void CopyFromPageLockedAsync( this <#= typeName #>.<#= strideName #>> target, diff --git a/Src/ILGPU/Runtime/ArrayViewExtensions.cs b/Src/ILGPU/Runtime/ArrayViewExtensions.cs index ab0a02793..5e0e4ebb7 100644 --- a/Src/ILGPU/Runtime/ArrayViewExtensions.cs +++ b/Src/ILGPU/Runtime/ArrayViewExtensions.cs @@ -1423,6 +1423,7 @@ public static void CopyFromCPU( /// The page locked memory. /// This method is not supported on accelerators. [NotInsideKernel] + [Obsolete("Use PageLockScope.ArrayView instead")] public static void CopyToPageLockedAsync( this TView source, AcceleratorStream stream, @@ -1459,6 +1460,7 @@ public static void CopyToPageLockedAsync( /// The page locked memory. /// This method is not supported on accelerators. [NotInsideKernel] + [Obsolete("Use PageLockScope.ArrayView instead")] public static void CopyFromPageLockedAsync( this TView target, AcceleratorStream stream, @@ -1494,6 +1496,7 @@ public static void CopyFromPageLockedAsync( /// The page locked memory. /// This method is not supported on accelerators. [NotInsideKernel] + [Obsolete("Use PageLockScope.ArrayView instead")] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void CopyToPageLockedAsync( this TView source, @@ -1515,6 +1518,7 @@ public static void CopyToPageLockedAsync( /// The page locked memory. /// This method is not supported on accelerators. [NotInsideKernel] + [Obsolete("Use PageLockScope.ArrayView instead")] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void CopyFromPageLockedAsync( this TView target, @@ -1537,6 +1541,7 @@ public static void CopyFromPageLockedAsync( /// The page locked memory. /// This method is not supported on accelerators. [NotInsideKernel] + [Obsolete("Use PageLockScope.ArrayView instead")] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void CopyToPageLockedAsync( this TView source, @@ -1546,7 +1551,7 @@ public static void CopyToPageLockedAsync( where T : unmanaged => source.CopyToPageLockedAsync( stream, - pageLockedArray.Scope); + pageLockedArray.Scope.AsNotNull()); /// /// Copies from the page locked memory into the given target view without @@ -1559,6 +1564,7 @@ public static void CopyToPageLockedAsync( /// The page locked memory. /// This method is not supported on accelerators. [NotInsideKernel] + [Obsolete("Use PageLockScope.ArrayView instead")] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void CopyFromPageLockedAsync( this TView target, @@ -1568,7 +1574,7 @@ public static void CopyFromPageLockedAsync( where T : unmanaged => target.CopyFromPageLockedAsync( stream, - pageLockedArray.Scope); + pageLockedArray.Scope.AsNotNull()); /// /// Copies from the source view into the given page locked memory without @@ -1580,13 +1586,14 @@ public static void CopyFromPageLockedAsync( /// The page locked memory. /// This method is not supported on accelerators. [NotInsideKernel] + [Obsolete("Use PageLockScope.ArrayView instead")] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void CopyToPageLockedAsync( this TView source, PageLockedArray pageLockedArray) where TView : IContiguousArrayView where T : unmanaged => - source.CopyToPageLockedAsync(pageLockedArray.Scope); + source.CopyToPageLockedAsync(pageLockedArray.Scope.AsNotNull()); /// /// Copies from the page locked memory into the given target view without @@ -1598,13 +1605,14 @@ public static void CopyToPageLockedAsync( /// The page locked memory. /// This method is not supported on accelerators. [NotInsideKernel] + [Obsolete("Use PageLockScope.ArrayView instead")] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void CopyFromPageLockedAsync( this TView target, PageLockedArray pageLockedArray) where TView : IContiguousArrayView where T : unmanaged => - target.CopyFromPageLockedAsync(pageLockedArray.Scope); + target.CopyFromPageLockedAsync(pageLockedArray.Scope.AsNotNull()); #endregion