Skip to content

Commit

Permalink
Fixed missing stream in F# sample project.
Browse files Browse the repository at this point in the history
  • Loading branch information
MoFtZ committed Oct 10, 2023
1 parent ac71802 commit d193ec6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Samples/SimpleFSharp/Program.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ---------------------------------------------------------------------------------------
// ILGPU Samples
// Copyright (c) 2017-2021 ILGPU Project
// Copyright (c) 2017-2023 ILGPU Project
// www.ilgpu.net
//
// File: Program.fs
Expand Down Expand Up @@ -28,10 +28,10 @@ let main _argv =
printfn "Performing operations on %O" accelerator

use stream = accelerator.CreateStream()
let kernel = accelerator.LoadAutoGroupedStreamKernel<_, _, _>(Program.MyKernel)
let kernel = accelerator.LoadAutoGroupedKernel<_, _, _>(Program.MyKernel)
use buffer = accelerator.Allocate1D<_>(1024L)

kernel.Invoke(Index1D(int(buffer.Length)), buffer.View, 42)
kernel.Invoke(stream, Index1D(int(buffer.Length)), buffer.View, 42)

// Reads data from the GPU buffer into a new CPU array.
// Implicitly calls stream.Synchronize() to ensure
Expand Down

0 comments on commit d193ec6

Please sign in to comment.