MatrixFree<dim, Number>::evaluate_coefficients(Functor func) const
{
for (unsigned int i = 0; i < n_colors; ++i)
- internal::evaluate_coeff<dim, Number, Functor>
- <<<grid_dim[i], block_dim[i]>>>(func, get_data(i));
+ {
+ internal::evaluate_coeff<dim, Number, Functor>
+ <<<grid_dim[i], block_dim[i]>>>(func, get_data(i));
+ AssertCudaKernel();
+ }
}
{
// Execute the loop on the cells
for (unsigned int i = 0; i < n_colors; ++i)
- internal::apply_kernel_shmem<dim, Number, Functor>
- <<<grid_dim[i], block_dim[i]>>>(func,
- get_data(i),
- src.get_values(),
- dst.get_values());
+ {
+ internal::apply_kernel_shmem<dim, Number, Functor>
+ <<<grid_dim[i], block_dim[i]>>>(func,
+ get_data(i),
+ src.get_values(),
+ dst.get_values());
+ AssertCudaKernel();
+ }
}
// Execute the loop on the cells
for (unsigned int i = 0; i < n_colors; ++i)
- internal::apply_kernel_shmem<dim, Number, Functor>
- <<<grid_dim[i], block_dim[i]>>>(func,
- get_data(i),
- src.get_values(),
- dst.get_values());
+ {
+ internal::apply_kernel_shmem<dim, Number, Functor>
+ <<<grid_dim[i], block_dim[i]>>>(func,
+ get_data(i),
+ src.get_values(),
+ dst.get_values());
+ AssertCudaKernel();
+ }
dst.compress(VectorOperation::add);
src.zero_out_ghosts();
}
// Execute the loop on the cells
for (unsigned int i = 0; i < n_colors; ++i)
- internal::apply_kernel_shmem<dim, Number, Functor>
- <<<grid_dim[i], block_dim[i]>>>(func,
- get_data(i),
- ghosted_src.get_values(),
- ghosted_dst.get_values());
+ {
+ internal::apply_kernel_shmem<dim, Number, Functor>
+ <<<grid_dim[i], block_dim[i]>>>(func,
+ get_data(i),
+ ghosted_src.get_values(),
+ ghosted_dst.get_values());
+ AssertCudaKernel();
+ }
// Add the ghosted values
ghosted_dst.compress(VectorOperation::add);
src.size(),
src.get_values(),
dst.get_values());
+ AssertCudaKernel();
}
src.local_size(),
src.get_values(),
dst.get_values());
+ AssertCudaKernel();
}
dst.size(),
val,
dst.get_values());
+ AssertCudaKernel();
}
dst.local_size(),
val,
dst.get_values());
+ AssertCudaKernel();
}