mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-29 15:24:51 +08:00
bug #1369: fix type mismatch warning.
Returned values of omp thread id and numbers are int, o let's use int instead of Index here.
This commit is contained in:
parent
7713e20fd2
commit
97812ff0d3
@ -83,8 +83,8 @@ static void run(Index rows, Index cols, Index depth,
|
|||||||
if(info)
|
if(info)
|
||||||
{
|
{
|
||||||
// this is the parallel version!
|
// this is the parallel version!
|
||||||
Index tid = omp_get_thread_num();
|
int tid = omp_get_thread_num();
|
||||||
Index threads = omp_get_num_threads();
|
int threads = omp_get_num_threads();
|
||||||
|
|
||||||
LhsScalar* blockA = blocking.blockA();
|
LhsScalar* blockA = blocking.blockA();
|
||||||
eigen_internal_assert(blockA!=0);
|
eigen_internal_assert(blockA!=0);
|
||||||
@ -116,9 +116,9 @@ static void run(Index rows, Index cols, Index depth,
|
|||||||
info[tid].sync = k;
|
info[tid].sync = k;
|
||||||
|
|
||||||
// Computes C_i += A' * B' per A'_i
|
// Computes C_i += A' * B' per A'_i
|
||||||
for(Index shift=0; shift<threads; ++shift)
|
for(int shift=0; shift<threads; ++shift)
|
||||||
{
|
{
|
||||||
Index i = (tid+shift)%threads;
|
int i = (tid+shift)%threads;
|
||||||
|
|
||||||
// At this point we have to make sure that A'_i has been updated by the thread i,
|
// At this point we have to make sure that A'_i has been updated by the thread i,
|
||||||
// we use testAndSetOrdered to mimic a volatile access.
|
// we use testAndSetOrdered to mimic a volatile access.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user