Skip to content
Snippets Groups Projects
Commit 674d7642 authored by yaskovet's avatar yaskovet
Browse files

Merge branch 'develop'

parents 5234c53d 5ec15ac0
No related branches found
No related tags found
No related merge requests found
Pipeline #7767 failed
......@@ -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;}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment