@@ -172,10 +172,11 @@ class IndexSpace
172172*/
173173template <class ExecutionSpace >
174174Kokkos::RangePolicy<ExecutionSpace>
175- createExecutionPolicy ( const IndexSpace<1 >& index_space, const ExecutionSpace& )
175+ createExecutionPolicy ( const IndexSpace<1 >& index_space,
176+ const ExecutionSpace& exec_space )
176177{
177- return Kokkos::RangePolicy<ExecutionSpace>( index_space. min ( 0 ),
178- index_space.max ( 0 ) );
178+ return Kokkos::RangePolicy<ExecutionSpace>(
179+ exec_space, index_space. min ( 0 ), index_space.max ( 0 ) );
179180}
180181
181182// ---------------------------------------------------------------------------//
@@ -187,11 +188,11 @@ createExecutionPolicy( const IndexSpace<1>& index_space, const ExecutionSpace& )
187188*/
188189template <class ExecutionSpace , class WorkTag >
189190Kokkos::RangePolicy<ExecutionSpace, WorkTag>
190- createExecutionPolicy ( const IndexSpace<1 >& index_space, const ExecutionSpace&,
191- const WorkTag& )
191+ createExecutionPolicy ( const IndexSpace<1 >& index_space,
192+ const ExecutionSpace& exec_space, const WorkTag& )
192193{
193- return Kokkos::RangePolicy<ExecutionSpace, WorkTag>( index_space. min ( 0 ),
194- index_space.max ( 0 ) );
194+ return Kokkos::RangePolicy<ExecutionSpace, WorkTag>(
195+ exec_space, index_space. min ( 0 ), index_space.max ( 0 ) );
195196}
196197
197198// ---------------------------------------------------------------------------//
@@ -201,11 +202,12 @@ createExecutionPolicy( const IndexSpace<1>& index_space, const ExecutionSpace&,
201202*/
202203template <class IndexSpace_t , class ExecutionSpace >
203204Kokkos::MDRangePolicy<ExecutionSpace, Kokkos::Rank<IndexSpace_t::Rank>>
204- createExecutionPolicy ( const IndexSpace_t& index_space, const ExecutionSpace& )
205+ createExecutionPolicy ( const IndexSpace_t& index_space,
206+ const ExecutionSpace& exec_space )
205207{
206208 return Kokkos::MDRangePolicy<ExecutionSpace,
207209 Kokkos::Rank<IndexSpace_t::Rank>>(
208- index_space.min (), index_space.max () );
210+ exec_space, index_space.min (), index_space.max () );
209211}
210212
211213// ---------------------------------------------------------------------------//
@@ -216,12 +218,12 @@ createExecutionPolicy( const IndexSpace_t& index_space, const ExecutionSpace& )
216218*/
217219template <class IndexSpace_t , class ExecutionSpace , class WorkTag >
218220Kokkos::MDRangePolicy<ExecutionSpace, WorkTag, Kokkos::Rank<IndexSpace_t::Rank>>
219- createExecutionPolicy ( const IndexSpace_t& index_space, const ExecutionSpace&,
220- const WorkTag& )
221+ createExecutionPolicy ( const IndexSpace_t& index_space,
222+ const ExecutionSpace& exec_space, const WorkTag& )
221223{
222224 return Kokkos::MDRangePolicy<ExecutionSpace, WorkTag,
223225 Kokkos::Rank<IndexSpace_t::Rank>>(
224- index_space.min (), index_space.max () );
226+ exec_space, index_space.min (), index_space.max () );
225227}
226228
227229// ---------------------------------------------------------------------------//
0 commit comments