Skip to content

Commit

Permalink
Fixed comments in PinnedMemoryCopy sample.
Browse files Browse the repository at this point in the history
  • Loading branch information
MoFtZ committed Mar 2, 2023
1 parent ed4c169 commit ce83743
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Samples/PinnedMemoryCopy/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ---------------------------------------------------------------------------------------
// ILGPU Samples
// Copyright (c) 2021 ILGPU Project
// Copyright (c) 2021-2023 ILGPU Project
// www.ilgpu.net
//
// File: Program.cs
Expand All @@ -20,7 +20,7 @@ namespace PinnedMemoryCopy
class Program
{
/// <summary>
/// Uses GCHandle to allocated pinned allocate pinned chunks of memory in CPU host memory.
/// Uses GCHandle to allocate pinned chunks of memory in CPU host memory.
/// </summary>
/// <param name="accelerator">The current accelerator.</param>
/// <param name="dataSize">The number of elements to copy.</param>
Expand Down Expand Up @@ -53,7 +53,7 @@ static void PerformPinnedCopyUsingGCHandle(Accelerator accelerator, int dataSize

#if NET5_0_OR_GREATER
/// <summary>
/// Uses System.GC.AllocateArray to allocated pinned allocate pinned chunks of memory in CPU host memory.
/// Uses System.GC.AllocateArray to allocate pinned chunks of memory in CPU host memory.
/// </summary>
/// <param name="accelerator">The current accelerator.</param>
/// <param name="dataSize">The number of elements to copy.</param>
Expand Down

0 comments on commit ce83743

Please sign in to comment.