File tree Expand file tree Collapse file tree
src/GraphBLAS-sharp.Backend Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,25 +2,9 @@ namespace GraphBLAS.FSharp.Backend.Common
22
33open Brahma.FSharp
44open Microsoft.FSharp .Quotations
5+ open GraphBLAS.FSharp .Backend .Objects .ClContext
56
67module ClArray =
7- type ClContext with
8- member this.CreateClArrayWithGPUOnlyFlags ( size : int ) =
9- this.CreateClArray(
10- size,
11- deviceAccessMode = DeviceAccessMode.ReadWrite,
12- hostAccessMode = HostAccessMode.NotAccessible,
13- allocationMode = AllocationMode.Default
14- )
15-
16- member this.CreateClArrayWithGPUOnlyFlags ( array : 'a []) =
17- this.CreateClArray(
18- array,
19- deviceAccessMode = DeviceAccessMode.ReadWrite,
20- hostAccessMode = HostAccessMode.NotAccessible,
21- allocationMode = AllocationMode.CopyHostPtr
22- )
23-
248 let init ( initializer : Expr < int -> 'a >) ( clContext : ClContext ) workGroupSize =
259
2610 let init =
Original file line number Diff line number Diff line change 1717 <Compile Include =" Objects/Matrix.fs" />
1818 <Compile Include =" Objects/Masks.fs" />
1919 <Compile Include =" Objects/AtLeastOne.fs" />
20+ <Compile Include =" Objects\ClContextExtensions.fs" />
2021 <Compile Include =" Quotes/SubReduce.fs" />
2122 <Compile Include =" Quotes/Arithmetic.fs" />
2223 <Compile Include =" Quotes/Convert.fs" />
Original file line number Diff line number Diff line change 1+ namespace GraphBLAS.FSharp.Backend.Objects
2+
3+ open Brahma.FSharp
4+
5+ module ClContext =
6+ type ClContext with
7+ member this.CreateClArrayWithGPUOnlyFlags ( size : int ) =
8+ this.CreateClArray(
9+ size,
10+ deviceAccessMode = DeviceAccessMode.ReadWrite,
11+ hostAccessMode = HostAccessMode.NotAccessible,
12+ allocationMode = AllocationMode.Default
13+ )
14+
15+ member this.CreateClArrayWithGPUOnlyFlags ( array : 'a []) =
16+ this.CreateClArray(
17+ array,
18+ deviceAccessMode = DeviceAccessMode.ReadWrite,
19+ hostAccessMode = HostAccessMode.NotAccessible,
20+ allocationMode = AllocationMode.CopyHostPtr
21+ )
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ open GraphBLAS.FSharp.Backend.Common
88open GraphBLAS.FSharp .Backend .Vector .Dense
99open GraphBLAS.FSharp .Backend .Vector .Sparse
1010open GraphBLAS.FSharp .Backend .Objects
11- open GraphBLAS.FSharp .Backend .Common . ClArray
11+ open GraphBLAS.FSharp .Backend .Objects . ClContext
1212open GraphBLAS.FSharp .Backend .Objects .ClVector
1313
1414
You can’t perform that action at this time.
0 commit comments