mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-08 22:21:49 +08:00
fix 228 (ei_aligned_stack_delete does not exist anymore)
(transplanted from 5fda8cdfb36a56288c54bd2f87bf596cb06b506a )
This commit is contained in:
parent
adf5992767
commit
ffee1d1c87
@ -155,9 +155,6 @@ static void run(Index rows, Index cols, Index depth,
|
|||||||
#pragma omp atomic
|
#pragma omp atomic
|
||||||
--(info[j].users);
|
--(info[j].users);
|
||||||
}
|
}
|
||||||
|
|
||||||
ei_aligned_stack_delete(LhsScalar, blockA, kc*mc);
|
|
||||||
ei_aligned_stack_delete(RhsScalar, w, sizeW);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif // EIGEN_HAS_OPENMP
|
#endif // EIGEN_HAS_OPENMP
|
||||||
|
@ -70,11 +70,10 @@ void check_aligned_stack_alloc()
|
|||||||
{
|
{
|
||||||
for(int i = 1; i < 1000; i++)
|
for(int i = 1; i < 1000; i++)
|
||||||
{
|
{
|
||||||
float *p = ei_aligned_stack_new(float,i);
|
ei_declare_aligned_stack_constructed_variable(float, p, i, 0);
|
||||||
VERIFY(std::size_t(p)%ALIGNMENT==0);
|
VERIFY(std::size_t(p)%ALIGNMENT==0);
|
||||||
// if the buffer is wrongly allocated this will give a bad write --> check with valgrind
|
// if the buffer is wrongly allocated this will give a bad write --> check with valgrind
|
||||||
for(int j = 0; j < i; j++) p[j]=0;
|
for(int j = 0; j < i; j++) p[j]=0;
|
||||||
ei_aligned_stack_delete(float,p,i);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user