mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
fix compilation without openmp
This commit is contained in:
parent
c05047d28e
commit
8d4a0e6753
@ -87,6 +87,7 @@ static void run(int rows, int cols, int depth,
|
||||
ei_gemm_pack_lhs<Scalar, Blocking::mr, LhsStorageOrder> pack_lhs;
|
||||
ei_gebp_kernel<Scalar, Blocking::mr, Blocking::nr, ei_conj_helper<ConjugateLhs,ConjugateRhs> > gebp;
|
||||
|
||||
#ifdef EIGEN_HAS_OPENMP
|
||||
if(info)
|
||||
{
|
||||
// this is the parallel version!
|
||||
@ -145,6 +146,7 @@ static void run(int rows, int cols, int depth,
|
||||
ei_aligned_stack_delete(Scalar, w, sizeW);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
// this is the sequential version!
|
||||
Scalar* blockA = ei_aligned_stack_new(Scalar, kc*mc);
|
||||
|
@ -101,7 +101,7 @@ template<bool Parallelize,typename Functor>
|
||||
void ei_run_parallel_gemm(const Functor& func, int rows, int cols)
|
||||
{
|
||||
#ifndef EIGEN_HAS_OPENMP
|
||||
func(0,size1, 0,size2);
|
||||
func(0,rows, 0,cols);
|
||||
#else
|
||||
|
||||
int threads = omp_get_max_threads();
|
||||
|
Loading…
x
Reference in New Issue
Block a user