Skip to content

Commit ec2c909

Browse files
authored
Using ChaiBuffer to test on GPUs (#220)
1 parent 2e98d49 commit ec2c909

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/exampleArrayOfArrays.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,14 +279,14 @@ TEST( ArrayOfArrays, resizeFromCapacities )
279279
// Sphinx start after ChaiBuffer
280280
CUDA_TEST( ArrayOfArrays, ChaiBuffer )
281281
{
282-
LvArray::ArrayOfArrays< int, std::ptrdiff_t, LvArray::MallocBuffer > arrayOfArrays( 10, 9 );
282+
LvArray::ArrayOfArrays< int, std::ptrdiff_t, LvArray::ChaiBuffer > arrayOfArrays( 10, 9 );
283283

284284
{
285285
// Create a view.
286286
LvArray::ArrayOfArraysView< int,
287287
std::ptrdiff_t const,
288288
false,
289-
LvArray::MallocBuffer > const view = arrayOfArrays.toView();
289+
LvArray::ChaiBuffer > const view = arrayOfArrays.toView();
290290

291291
// Capture the view on device. This will copy the values, sizes and offsets.
292292
// The values and sizes will be touched.
@@ -307,7 +307,7 @@ CUDA_TEST( ArrayOfArrays, ChaiBuffer )
307307
LvArray::ArrayOfArraysView< int,
308308
std::ptrdiff_t const,
309309
true,
310-
LvArray::MallocBuffer > const viewConstSizes = arrayOfArrays.toViewConstSizes();
310+
LvArray::ChaiBuffer > const viewConstSizes = arrayOfArrays.toViewConstSizes();
311311

312312
// Capture the view on the host. This will copy back the values and sizes since they were previously touched
313313
// on device. It will only touch the values on host.
@@ -328,7 +328,7 @@ CUDA_TEST( ArrayOfArrays, ChaiBuffer )
328328
LvArray::ArrayOfArraysView< int const,
329329
std::ptrdiff_t const,
330330
true,
331-
LvArray::MallocBuffer > const viewConst = arrayOfArrays.toViewConst();
331+
LvArray::ChaiBuffer > const viewConst = arrayOfArrays.toViewConst();
332332

333333
// Capture the view on device. Since the values were previously touched on host it will copy them over.
334334
// Both the sizes and offsets are current on device so they are not copied over. Nothing is touched.

0 commit comments

Comments
 (0)