Skip to content

Commit

Permalink
tiny change in atlas_test_array_kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrdar committed Mar 6, 2024
1 parent bb8c508 commit a9e4c8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tests/array/test_array_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ void kernel_ex(array::ArrayView<Value, RANK> dv)
dv(3, 3, 3) += dv.data_view().template length<0>() * dv.data_view().template length<1>() * dv.data_view().template length<2>();
#elif ATLAS_NATIVE_STORAGE_BACKEND_CUDA
dv(3, 3, 3) += dv.shape(0) * dv.shape(1) * dv.shape(2);
#else
ATLAS_ASSERT(false);
#endif
}

Expand Down Expand Up @@ -95,6 +97,8 @@ CASE( "test_array_loop" )

ds->updateDevice();

ds->syncHostDevice(); // should not do anything

auto cv = make_device_view<double, 3>(*ds);

loop_kernel_ex<<<1,1>>>(cv);
Expand Down

0 comments on commit a9e4c8d

Please sign in to comment.