KOKKOS_INLINE_FUNCTION void team_broadcast(ValueType& value, const int& thread_id) const { #if ! defined( KOKKOS_ACTIVE_EXECUTION_MEMORY_SPACE_HOST ) { } #else // Make sure there is enough scratch space: typedef typename if_c< sizeof(ValueType) < TEAM_REDUCE_SIZE , ValueType , void >::type type ; type * const local_value = ((type*) m_exec.scratch_thread()); if(team_rank() == thread_id) *local_value = value; memory_fence(); team_barrier(); value = *local_value; #endif }
inline void team_work_next() { if ( ++m_work_league_rank < m_work_league_end ) team_barrier(); }