template <typename Functor>
void
parallel_for(
- Functor & functor,
- size_type start,
- size_type end,
- std::shared_ptr<parallel::internal::TBBPartitioner> &partitioner)
+ Functor & functor,
+ size_type start,
+ size_type end,
+ const std::shared_ptr<parallel::internal::TBBPartitioner> &partitioner)
{
#ifdef DEAL_II_WITH_THREADS
size_type vec_size = end - start;
template <typename Operation, typename ResultType>
void
parallel_reduce(
- const Operation & op,
- const size_type start,
- const size_type end,
- ResultType & result,
- std::shared_ptr<parallel::internal::TBBPartitioner> &partitioner)
+ const Operation & op,
+ const size_type start,
+ const size_type end,
+ ResultType & result,
+ const std::shared_ptr<parallel::internal::TBBPartitioner> &partitioner)
{
#ifdef DEAL_II_WITH_THREADS
size_type vec_size = end - start;
{
static void
copy(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &
/*thread_loop_partitioner*/,
const size_type /*size*/,
const ::dealii::MemorySpace::MemorySpaceData<Number2, MemorySpace>
static void
set(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &
/*thread_loop_partitioner*/,
const size_type /*size*/,
const Number /*s*/,
static void
add_vector(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &
/*thread_loop_partitioner*/,
const size_type /*size*/,
const ::dealii::MemorySpace::MemorySpaceData<Number, MemorySpace>
static void
subtract_vector(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &
/*thread_loop_partitioner*/,
const size_type /*size*/,
const ::dealii::MemorySpace::MemorySpaceData<Number, MemorySpace>
static void
add_factor(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &
/*thread_loop_partitioner*/,
const size_type /*size*/,
Number /*a*/,
static void
add_av(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &
/*thread_loop_partitioner*/,
const size_type /*size*/,
const Number /*a*/,
static void
add_avpbw(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &
/*thread_loop_partitioner*/,
const size_type /*size*/,
const Number /*a*/,
static void
sadd_xv(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &
/*thread_loop_partitioner*/,
const size_type /*size*/,
const Number /*x*/,
static void
sadd_xav(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &
/*thread_loop_partitioner*/,
const size_type /*size*/,
const Number /*x*/,
static void
sadd_xavbw(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &
/*thread_loop_partitioner*/,
const size_type /*size*/,
const Number /*x*/,
static void
multiply_factor(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &
/*thread_loop_partitioner*/,
const size_type /*size*/,
const Number /*factor*/,
static void
scale(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &
/*thread_loop_partitioner*/,
const size_type /*size*/,
const ::dealii::MemorySpace::MemorySpaceData<Number, MemorySpace>
static void
equ_au(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &
/*thread_loop_partitioner*/,
const size_type /*size*/,
const Number /*a*/,
static void
equ_aubv(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &
/*thread_loop_partitioner*/,
const size_type /*size*/,
const Number /*a*/,
static Number
dot(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &
/*thread_loop_partitioner*/,
const size_type /*size*/,
const ::dealii::MemorySpace::MemorySpaceData<Number2, MemorySpace>
template <typename real_type>
static void
norm_2(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &
/*thread_loop_partitioner*/,
const size_type /*size*/,
real_type & /*sum*/,
static Number
mean_value(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &
/*thread_loop_partitioner*/,
const size_type /*size*/,
const ::dealii::MemorySpace::MemorySpaceData<Number, MemorySpace>
template <typename real_type>
static void
- norm_1(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
- /*thread_loop_partitioner*/,
- const size_type /*size*/,
- real_type & /*sum*/,
- Number * /*values*/,
- Number * /*values_dev*/)
+ norm_1(
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &
+ /*thread_loop_partitioner*/,
+ const size_type /*size*/,
+ real_type & /*sum*/,
+ Number * /*values*/,
+ Number * /*values_dev*/)
{}
template <typename real_type>
static void
norm_p(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &
/*thread_loop_partitioner*/,
const size_type /*size*/,
real_type & /*sum*/,
static Number
add_and_dot(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &
/*thread_loop_partitioner*/,
const size_type /*size*/,
const Number /*a*/,
struct functions<Number, Number2, ::dealii::MemorySpace::Host>
{
static void
- copy(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
- thread_loop_partitioner,
+ copy(const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ & thread_loop_partitioner,
const size_type size,
const ::dealii::MemorySpace::
MemorySpaceData<Number2, ::dealii::MemorySpace::Host> &v_data,
}
static void
- set(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
- thread_loop_partitioner,
+ set(const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ & thread_loop_partitioner,
const size_type size,
const Number s,
::dealii::MemorySpace::MemorySpaceData<Number,
}
static void
- add_vector(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
- thread_loop_partitioner,
- const size_type size,
- const ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::Host> &v_data,
- ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::Host> &data)
+ add_vector(
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ & thread_loop_partitioner,
+ const size_type size,
+ const ::dealii::MemorySpace::
+ MemorySpaceData<Number, ::dealii::MemorySpace::Host> &v_data,
+ ::dealii::MemorySpace::MemorySpaceData<Number,
+ ::dealii::MemorySpace::Host>
+ &data)
{
Vectorization_add_v<Number> vector_add(data.values.get(),
v_data.values.get());
static void
subtract_vector(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
- thread_loop_partitioner,
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ & thread_loop_partitioner,
const size_type size,
const ::dealii::MemorySpace::
MemorySpaceData<Number, ::dealii::MemorySpace::Host> &v_data,
}
static void
- add_factor(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
- thread_loop_partitioner,
- const size_type size,
- Number a,
- ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::Host> &data)
+ add_factor(
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ & thread_loop_partitioner,
+ const size_type size,
+ Number a,
+ ::dealii::MemorySpace::MemorySpaceData<Number,
+ ::dealii::MemorySpace::Host>
+ &data)
{
Vectorization_add_factor<Number> vector_add(data.values.get(), a);
parallel_for(vector_add, 0, size, thread_loop_partitioner);
}
static void
- add_av(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
- thread_loop_partitioner,
+ add_av(const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ & thread_loop_partitioner,
const size_type size,
const Number a,
const ::dealii::MemorySpace::
}
static void
- add_avpbw(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
- thread_loop_partitioner,
- const size_type size,
- const Number a,
- const Number b,
- const ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::Host> &v_data,
- const ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::Host> &w_data,
- ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::Host> &data)
+ add_avpbw(
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ & thread_loop_partitioner,
+ const size_type size,
+ const Number a,
+ const Number b,
+ const ::dealii::MemorySpace::
+ MemorySpaceData<Number, ::dealii::MemorySpace::Host> &v_data,
+ const ::dealii::MemorySpace::
+ MemorySpaceData<Number, ::dealii::MemorySpace::Host> &w_data,
+ ::dealii::MemorySpace::MemorySpaceData<Number,
+ ::dealii::MemorySpace::Host>
+ &data)
{
Vectorization_add_avpbw<Number> vector_add(
data.values.get(), v_data.values.get(), w_data.values.get(), a, b);
}
static void
- sadd_xv(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
- thread_loop_partitioner,
- const size_type size,
- const Number x,
- const ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::Host> &v_data,
- ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::Host> &data)
+ sadd_xv(
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ & thread_loop_partitioner,
+ const size_type size,
+ const Number x,
+ const ::dealii::MemorySpace::
+ MemorySpaceData<Number, ::dealii::MemorySpace::Host> &v_data,
+ ::dealii::MemorySpace::MemorySpaceData<Number,
+ ::dealii::MemorySpace::Host>
+ &data)
{
Vectorization_sadd_xv<Number> vector_sadd(data.values.get(),
v_data.values.get(),
}
static void
- sadd_xav(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
- thread_loop_partitioner,
- const size_type size,
- const Number x,
- const Number a,
- const ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::Host> &v_data,
- ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::Host> &data)
+ sadd_xav(
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ & thread_loop_partitioner,
+ const size_type size,
+ const Number x,
+ const Number a,
+ const ::dealii::MemorySpace::
+ MemorySpaceData<Number, ::dealii::MemorySpace::Host> &v_data,
+ ::dealii::MemorySpace::MemorySpaceData<Number,
+ ::dealii::MemorySpace::Host>
+ &data)
{
Vectorization_sadd_xav<Number> vector_sadd(data.values.get(),
v_data.values.get(),
}
static void
- sadd_xavbw(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
- thread_loop_partitioner,
- const size_type size,
- const Number x,
- const Number a,
- const Number b,
- const ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::Host> &v_data,
- const ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::Host> &w_data,
- ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::Host> &data)
+ sadd_xavbw(
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ & thread_loop_partitioner,
+ const size_type size,
+ const Number x,
+ const Number a,
+ const Number b,
+ const ::dealii::MemorySpace::
+ MemorySpaceData<Number, ::dealii::MemorySpace::Host> &v_data,
+ const ::dealii::MemorySpace::
+ MemorySpaceData<Number, ::dealii::MemorySpace::Host> &w_data,
+ ::dealii::MemorySpace::MemorySpaceData<Number,
+ ::dealii::MemorySpace::Host>
+ &data)
{
Vectorization_sadd_xavbw<Number> vector_sadd(
data.values.get(), v_data.values.get(), w_data.values.get(), x, a, b);
static void
multiply_factor(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
- thread_loop_partitioner,
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ & thread_loop_partitioner,
const size_type size,
const Number factor,
::dealii::MemorySpace::MemorySpaceData<Number,
}
static void
- scale(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
- thread_loop_partitioner,
+ scale(const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ & thread_loop_partitioner,
const size_type size,
const ::dealii::MemorySpace::
MemorySpaceData<Number, ::dealii::MemorySpace::Host> &v_data,
}
static void
- equ_au(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
- thread_loop_partitioner,
+ equ_au(const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ & thread_loop_partitioner,
const size_type size,
const Number a,
const ::dealii::MemorySpace::
}
static void
- equ_aubv(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
- thread_loop_partitioner,
- const size_type size,
- const Number a,
- const Number b,
- const ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::Host> &v_data,
- const ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::Host> &w_data,
- ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::Host> &data)
+ equ_aubv(
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ & thread_loop_partitioner,
+ const size_type size,
+ const Number a,
+ const Number b,
+ const ::dealii::MemorySpace::
+ MemorySpaceData<Number, ::dealii::MemorySpace::Host> &v_data,
+ const ::dealii::MemorySpace::
+ MemorySpaceData<Number, ::dealii::MemorySpace::Host> &w_data,
+ ::dealii::MemorySpace::MemorySpaceData<Number,
+ ::dealii::MemorySpace::Host>
+ &data)
{
Vectorization_equ_aubv<Number> vector_equ(
data.values.get(), v_data.values.get(), w_data.values.get(), a, b);
}
static Number
- dot(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
- thread_loop_partitioner,
+ dot(const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ & thread_loop_partitioner,
const size_type size,
const ::dealii::MemorySpace::
MemorySpaceData<Number2, ::dealii::MemorySpace::Host> &v_data,
template <typename real_type>
static void
- norm_2(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
- thread_loop_partitioner,
+ norm_2(const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ & thread_loop_partitioner,
const size_type size,
real_type & sum,
::dealii::MemorySpace::MemorySpaceData<Number,
}
static Number
- mean_value(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
- thread_loop_partitioner,
- const size_type size,
- const ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::Host> &data)
+ mean_value(
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ & thread_loop_partitioner,
+ const size_type size,
+ const ::dealii::MemorySpace::
+ MemorySpaceData<Number, ::dealii::MemorySpace::Host> &data)
{
Number sum;
MeanValue<Number> mean(data.values.get());
template <typename real_type>
static void
- norm_1(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
- thread_loop_partitioner,
+ norm_1(const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ & thread_loop_partitioner,
const size_type size,
real_type & sum,
::dealii::MemorySpace::MemorySpaceData<Number,
template <typename real_type>
static void
- norm_p(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
- thread_loop_partitioner,
+ norm_p(const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ & thread_loop_partitioner,
const size_type size,
real_type & sum,
real_type p,
static Number
add_and_dot(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
- thread_loop_partitioner,
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ & thread_loop_partitioner,
const size_type size,
const Number a,
const ::dealii::MemorySpace::
::dealii::LinearAlgebra::CUDAWrappers::kernel::chunk_size;
static void
- copy(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>,
- const size_type size,
- const ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &v_data,
- ::dealii::MemorySpace::MemorySpaceData<Number,
- ::dealii::MemorySpace::CUDA>
- &data)
+ copy(
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &,
+ const size_type size,
+ const ::dealii::MemorySpace::
+ MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &v_data,
+ ::dealii::MemorySpace::MemorySpaceData<Number,
+ ::dealii::MemorySpace::CUDA>
+ &data)
{
cudaError_t cuda_error_code = cudaMemcpy(data.values_dev.get(),
v_data.values_dev.get(),
}
static void
- set(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>,
+ set(const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &,
const size_type size,
const Number s,
::dealii::MemorySpace::MemorySpaceData<Number,
}
static void
- add_vector(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>,
- const size_type size,
- const ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &v_data,
- ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &data)
+ add_vector(
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &,
+ const size_type size,
+ const ::dealii::MemorySpace::
+ MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &v_data,
+ ::dealii::MemorySpace::MemorySpaceData<Number,
+ ::dealii::MemorySpace::CUDA>
+ &data)
{
const int n_blocks = 1 + (size - 1) / (chunk_size * block_size);
::dealii::LinearAlgebra::CUDAWrappers::kernel::add_aV<Number>
static void
subtract_vector(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>,
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &,
const size_type size,
const ::dealii::MemorySpace::
MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &v_data,
}
static void
- add_factor(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>,
- const size_type size,
- Number a,
- ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &data)
+ add_factor(
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &,
+ const size_type size,
+ Number a,
+ ::dealii::MemorySpace::MemorySpaceData<Number,
+ ::dealii::MemorySpace::CUDA>
+ &data)
{
const int n_blocks = 1 + (size - 1) / (chunk_size * block_size);
::dealii::LinearAlgebra::CUDAWrappers::kernel::vec_add<Number>
}
static void
- add_av(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>,
- const size_type size,
- const Number a,
- const ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &v_data,
- ::dealii::MemorySpace::MemorySpaceData<Number,
- ::dealii::MemorySpace::CUDA>
- &data)
+ add_av(
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &,
+ const size_type size,
+ const Number a,
+ const ::dealii::MemorySpace::
+ MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &v_data,
+ ::dealii::MemorySpace::MemorySpaceData<Number,
+ ::dealii::MemorySpace::CUDA>
+ &data)
{
const int n_blocks = 1 + (size - 1) / (chunk_size * block_size);
::dealii::LinearAlgebra::CUDAWrappers::kernel::add_aV<Number>
}
static void
- add_avpbw(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>,
- const size_type size,
- const Number a,
- const Number b,
- const ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &v_data,
- const ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &w_data,
- ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &data)
+ add_avpbw(
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &,
+ const size_type size,
+ const Number a,
+ const Number b,
+ const ::dealii::MemorySpace::
+ MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &v_data,
+ const ::dealii::MemorySpace::
+ MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &w_data,
+ ::dealii::MemorySpace::MemorySpaceData<Number,
+ ::dealii::MemorySpace::CUDA>
+ &data)
{
const int n_blocks = 1 + (size - 1) / (chunk_size * block_size);
::dealii::LinearAlgebra::CUDAWrappers::kernel::add_aVbW<Number>
}
static void
- sadd_xv(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>,
- const size_type size,
- const Number x,
- const ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &v_data,
- ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &data)
+ sadd_xv(
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &,
+ const size_type size,
+ const Number x,
+ const ::dealii::MemorySpace::
+ MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &v_data,
+ ::dealii::MemorySpace::MemorySpaceData<Number,
+ ::dealii::MemorySpace::CUDA>
+ &data)
{
const int n_blocks = 1 + (size - 1) / (chunk_size * block_size);
::dealii::LinearAlgebra::CUDAWrappers::kernel::sadd<Number>
}
static void
- sadd_xav(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>,
- const size_type size,
- const Number x,
- const Number a,
- const ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &v_data,
- ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &data)
+ sadd_xav(
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &,
+ const size_type size,
+ const Number x,
+ const Number a,
+ const ::dealii::MemorySpace::
+ MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &v_data,
+ ::dealii::MemorySpace::MemorySpaceData<Number,
+ ::dealii::MemorySpace::CUDA>
+ &data)
{
const int n_blocks = 1 + (size - 1) / (chunk_size * block_size);
::dealii::LinearAlgebra::CUDAWrappers::kernel::sadd<Number>
}
static void
- sadd_xavbw(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>,
- const size_type size,
- const Number x,
- const Number a,
- const Number b,
- const ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &v_data,
- const ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &w_data,
- ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &data)
+ sadd_xavbw(
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &,
+ const size_type size,
+ const Number x,
+ const Number a,
+ const Number b,
+ const ::dealii::MemorySpace::
+ MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &v_data,
+ const ::dealii::MemorySpace::
+ MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &w_data,
+ ::dealii::MemorySpace::MemorySpaceData<Number,
+ ::dealii::MemorySpace::CUDA>
+ &data)
{
const int n_blocks = 1 + (size - 1) / (chunk_size * block_size);
::dealii::LinearAlgebra::CUDAWrappers::kernel::sadd<Number>
static void
multiply_factor(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>,
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &,
const size_type size,
const Number factor,
::dealii::MemorySpace::MemorySpaceData<Number,
}
static void
- scale(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>,
- const size_type size,
- const ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &v_data,
- ::dealii::MemorySpace::MemorySpaceData<Number,
- ::dealii::MemorySpace::CUDA>
- &data)
+ scale(
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &,
+ const size_type size,
+ const ::dealii::MemorySpace::
+ MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &v_data,
+ ::dealii::MemorySpace::MemorySpaceData<Number,
+ ::dealii::MemorySpace::CUDA>
+ &data)
{
const int n_blocks = 1 + (size - 1) / (chunk_size * block_size);
::dealii::LinearAlgebra::CUDAWrappers::kernel::scale<Number>
}
static void
- equ_au(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>,
- const size_type size,
- const Number a,
- const ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &v_data,
- ::dealii::MemorySpace::MemorySpaceData<Number,
- ::dealii::MemorySpace::CUDA>
- &data)
+ equ_au(
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &,
+ const size_type size,
+ const Number a,
+ const ::dealii::MemorySpace::
+ MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &v_data,
+ ::dealii::MemorySpace::MemorySpaceData<Number,
+ ::dealii::MemorySpace::CUDA>
+ &data)
{
const int n_blocks = 1 + (size - 1) / (chunk_size * block_size);
::dealii::LinearAlgebra::CUDAWrappers::kernel::equ<Number>
}
static void
- equ_aubv(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>,
- const size_type size,
- const Number a,
- const Number b,
- const ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &v_data,
- const ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &w_data,
- ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &data)
+ equ_aubv(
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &,
+ const size_type size,
+ const Number a,
+ const Number b,
+ const ::dealii::MemorySpace::
+ MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &v_data,
+ const ::dealii::MemorySpace::
+ MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &w_data,
+ ::dealii::MemorySpace::MemorySpaceData<Number,
+ ::dealii::MemorySpace::CUDA>
+ &data)
{
const int n_blocks = 1 + (size - 1) / (chunk_size * block_size);
::dealii::LinearAlgebra::CUDAWrappers::kernel::equ<Number>
}
static Number
- dot(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>,
+ dot(const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &,
const size_type size,
const ::dealii::MemorySpace::
MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &v_data,
template <typename real_type>
static void
- norm_2(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
- thread_loop_partitioner,
+ norm_2(const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>
+ & thread_loop_partitioner,
const size_type size,
real_type & sum,
::dealii::MemorySpace::MemorySpaceData<Number,
}
static Number
- mean_value(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>,
- const size_type size,
- const ::dealii::MemorySpace::
- MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &data)
+ mean_value(
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &,
+ const size_type size,
+ const ::dealii::MemorySpace::
+ MemorySpaceData<Number, ::dealii::MemorySpace::CUDA> &data)
{
Number * result_device;
cudaError_t error_code = cudaMalloc(&result_device, sizeof(Number));
template <typename real_type>
static void
- norm_1(std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>,
- const size_type size,
- real_type & sum,
- ::dealii::MemorySpace::MemorySpaceData<Number,
- ::dealii::MemorySpace::CUDA>
- &data)
+ norm_1(
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &,
+ const size_type size,
+ real_type & sum,
+ ::dealii::MemorySpace::MemorySpaceData<Number,
+ ::dealii::MemorySpace::CUDA>
+ &data)
{
Number * result_device;
cudaError_t error_code = cudaMalloc(&result_device, sizeof(Number));
template <typename real_type>
static void
norm_p(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>,
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &,
const size_type,
real_type &,
real_type,
static Number
add_and_dot(
- std::shared_ptr<::dealii::parallel::internal::TBBPartitioner>,
+ const std::shared_ptr<::dealii::parallel::internal::TBBPartitioner> &,
const size_type size,
const Number a,
const ::dealii::MemorySpace::