Skip to content

Commit f7f184f

Browse files
committed
Fix tbb use_vector
1 parent d787351 commit f7f184f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: src/tbb/TBBStream.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,15 @@ void TBBStream<T>::init_arrays(T initA, T initB, T initC)
5959
template <class T>
6060
void TBBStream<T>::get_arrays(T const*& h_a, T const*& h_b, T const*& h_c)
6161
{
62+
#ifdef USE_VECTOR
63+
h_a = a.data();
64+
h_b = b.data();
65+
h_c = c.data();
66+
#else
6267
h_a = a;
6368
h_b = b;
6469
h_c = c;
70+
#endif
6571
}
6672

6773
template <class T>

0 commit comments

Comments
 (0)