Skip to content

Commit

Permalink
Fix tbb use_vector
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalobg committed Jun 4, 2024
1 parent d787351 commit f7f184f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tbb/TBBStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,15 @@ void TBBStream<T>::init_arrays(T initA, T initB, T initC)
template <class T>
void TBBStream<T>::get_arrays(T const*& h_a, T const*& h_b, T const*& h_c)
{
#ifdef USE_VECTOR
h_a = a.data();
h_b = b.data();
h_c = c.data();
#else
h_a = a;
h_b = b;
h_c = c;
#endif
}

template <class T>
Expand Down

0 comments on commit f7f184f

Please sign in to comment.