mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +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_gemm_pack_lhs<Scalar, Blocking::mr, LhsStorageOrder> pack_lhs;
|
||||||
ei_gebp_kernel<Scalar, Blocking::mr, Blocking::nr, ei_conj_helper<ConjugateLhs,ConjugateRhs> > gebp;
|
ei_gebp_kernel<Scalar, Blocking::mr, Blocking::nr, ei_conj_helper<ConjugateLhs,ConjugateRhs> > gebp;
|
||||||
|
|
||||||
|
#ifdef EIGEN_HAS_OPENMP
|
||||||
if(info)
|
if(info)
|
||||||
{
|
{
|
||||||
// this is the parallel version!
|
// 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);
|
ei_aligned_stack_delete(Scalar, w, sizeW);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
// this is the sequential version!
|
// this is the sequential version!
|
||||||
Scalar* blockA = ei_aligned_stack_new(Scalar, kc*mc);
|
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)
|
void ei_run_parallel_gemm(const Functor& func, int rows, int cols)
|
||||||
{
|
{
|
||||||
#ifndef EIGEN_HAS_OPENMP
|
#ifndef EIGEN_HAS_OPENMP
|
||||||
func(0,size1, 0,size2);
|
func(0,rows, 0,cols);
|
||||||
#else
|
#else
|
||||||
|
|
||||||
int threads = omp_get_max_threads();
|
int threads = omp_get_max_threads();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user