Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • mosaic/software/parallel-computing/openfpm/openfpm_devices
  • argupta/openfpm_devices
2 results
Show changes
Commits on Source (4)
......@@ -25,12 +25,12 @@ struct ite_g
dim3 wthr;
dim3 thr;
size_t nblocks()
size_t nblocks() const
{
return wthr.x * wthr.y * wthr.z;
}
size_t nthrs()
size_t nthrs() const
{
return thr.x * thr.y * thr.z;
}
......
......@@ -353,7 +353,7 @@ void launch_kernel(boost::context::detail::transfer_t par)
template<typename lambda_f, typename ite_type>
static void exe_kernel(lambda_f f, ite_type & ite)
static void exe_kernel(lambda_f f, const ite_type & ite)
{
#ifdef SE_CLASS1
if (init_wrappers_call == false)
......
......@@ -321,7 +321,7 @@ void launch_kernel(boost::context::detail::transfer_t par)
}
template<typename lambda_f, typename ite_type>
static void exe_kernel(lambda_f f, ite_type & ite)
static void exe_kernel(lambda_f f, const ite_type & ite)
{
if (ite.nthrs() == 0 || ite.nblocks() == 0) {return;}
......