Skip to content
Snippets Groups Projects
Commit 1bd966f1 authored by Karl Rupp's avatar Karl Rupp
Browse files

norm_inf: Fixed temporary array allocation.

Since array size was not known at compile-time, migration to
std::vector<T> was required.
parent a8fc1eb1
No related branches found
No related tags found
No related merge requests found
......@@ -796,7 +796,7 @@ void norm_inf_impl(vector_base<NumericT> const & vec1,
thread_count = omp_get_max_threads();
#endif
value_type temp[thread_count];
std::vector<value_type> temp(thread_count);
#ifdef VIENNACL_WITH_OPENMP
#pragma omp parallel if (size1 > VIENNACL_OPENMP_VECTOR_MIN_SIZE)
......
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