@@ -40,10 +40,10 @@ module SparseVector =
4040 res.[ 0 ]
4141
4242 let resultValues =
43- clContext.CreateClArrayWithFlag < 'a>( allocationMode, resultLength)
43+ clContext.CreateClArrayWithSpecificAllocationMode < 'a>( allocationMode, resultLength)
4444
4545 let resultIndices =
46- clContext.CreateClArrayWithFlag < int>( allocationMode, resultLength)
46+ clContext.CreateClArrayWithSpecificAllocationMode < int>( allocationMode, resultLength)
4747
4848 valuesScatter processor positions allValues resultValues
4949
@@ -61,13 +61,13 @@ module SparseVector =
6161 fun ( processor : MailboxProcessor < _ >) ( vectorLenght : int ) ( leftValues : ClArray < 'a >) ( leftIndices : ClArray < int >) ( rightValues : ClArray < 'b >) ( rightIndices : ClArray < int >) ->
6262
6363 let resultBitmap =
64- clContext.CreateClArrayWithFlag < int>( DeviceOnly, vectorLenght)
64+ clContext.CreateClArrayWithSpecificAllocationMode < int>( DeviceOnly, vectorLenght)
6565
6666 let resultIndices =
67- clContext.CreateClArrayWithFlag < int>( DeviceOnly, vectorLenght)
67+ clContext.CreateClArrayWithSpecificAllocationMode < int>( DeviceOnly, vectorLenght)
6868
6969 let resultValues =
70- clContext.CreateClArrayWithFlag < 'c>( DeviceOnly, vectorLenght)
70+ clContext.CreateClArrayWithSpecificAllocationMode < 'c>( DeviceOnly, vectorLenght)
7171
7272 let ndRange =
7373 Range1D.CreateValid( vectorLenght, workGroupSize)
@@ -144,16 +144,16 @@ module SparseVector =
144144 firstIndices.Length + secondIndices.Length
145145
146146 let allIndices =
147- clContext.CreateClArrayWithFlag < int>( DeviceOnly, sumOfSides)
147+ clContext.CreateClArrayWithSpecificAllocationMode < int>( DeviceOnly, sumOfSides)
148148
149149 let firstResultValues =
150- clContext.CreateClArrayWithFlag < 'a>( DeviceOnly, sumOfSides)
150+ clContext.CreateClArrayWithSpecificAllocationMode < 'a>( DeviceOnly, sumOfSides)
151151
152152 let secondResultValues =
153- clContext.CreateClArrayWithFlag < 'b>( DeviceOnly, sumOfSides)
153+ clContext.CreateClArrayWithSpecificAllocationMode < 'b>( DeviceOnly, sumOfSides)
154154
155155 let isLeftBitmap =
156- clContext.CreateClArrayWithFlag < int>( DeviceOnly, sumOfSides)
156+ clContext.CreateClArrayWithSpecificAllocationMode < int>( DeviceOnly, sumOfSides)
157157
158158 let ndRange =
159159 Range1D.CreateValid( sumOfSides, workGroupSize)
@@ -196,10 +196,10 @@ module SparseVector =
196196 let length = allIndices.Length
197197
198198 let allValues =
199- clContext.CreateClArrayWithFlag < 'c>( DeviceOnly, length)
199+ clContext.CreateClArrayWithSpecificAllocationMode < 'c>( DeviceOnly, length)
200200
201201 let positions =
202- clContext.CreateClArrayWithFlag < int>( DeviceOnly, length)
202+ clContext.CreateClArrayWithSpecificAllocationMode < int>( DeviceOnly, length)
203203
204204 let ndRange =
205205 Range1D.CreateValid( length, workGroupSize)
@@ -269,10 +269,10 @@ module SparseVector =
269269 let length = allIndices.Length
270270
271271 let allValues =
272- clContext.CreateClArrayWithFlag < 'a>( DeviceOnly, length)
272+ clContext.CreateClArrayWithSpecificAllocationMode < 'a>( DeviceOnly, length)
273273
274274 let positions =
275- clContext.CreateClArrayWithFlag ( DeviceOnly, length)
275+ clContext.CreateClArrayWithSpecificAllocationMode ( DeviceOnly, length)
276276
277277 let ndRange =
278278 Range1D.CreateValid( length, workGroupSize)
0 commit comments