MSVC 2015 fix hack around internal compiler crash on openmp atomic
Eigen3 bug report: http://eigen.tuxfamily.org/bz/show_bug.cgi?id=1131
This commit is contained in:
@@ -140,8 +140,14 @@ static void run(Index rows, Index cols, Index depth,
|
|||||||
// Release all the sub blocks B'_j of B' for the current thread,
|
// Release all the sub blocks B'_j of B' for the current thread,
|
||||||
// i.e., we simply decrement the number of users by 1
|
// i.e., we simply decrement the number of users by 1
|
||||||
for(Index j=0; j<threads; ++j)
|
for(Index j=0; j<threads; ++j)
|
||||||
|
{
|
||||||
#pragma omp atomic
|
#pragma omp atomic
|
||||||
|
#if defined(_MSC_VER) && _MSC_VER >= 1900
|
||||||
|
(info[j].users) -= 1;
|
||||||
|
#else
|
||||||
--(info[j].users);
|
--(info[j].users);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user