[eigen] OpenMP compile error

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


With the latest changes to index I'm getting a compile error with OpenMP. I think this small patch fixes the problem, GemMParallelInfo, in Parallelizer, needed the Index template parameter.

Before:
GemmParallelInfo<BlockBScalar>* info = new
          GemmParallelInfo<BlockBScalar>[threads];

After:
GemmParallelInfo<BlockBScalar,Index>* info = new
          GemmParallelInfo<BlockBScalar,Index>[threads];

-Trevor

# HG changeset patch
# User Trevor Irons <trevorirons@xxxxxxxxx>
# Date 1275397780 21600
# Node ID 83ae194325feea2c450039a21483e24535c7abe3
# Parent  2f7c9160e52f4b52dd6797798fc3241f954b1e7a
Addressess small compile error with OpenMP

diff -r 2f7c9160e52f -r 83ae194325fe Eigen/src/Core/products/Parallelizer.h
--- a/Eigen/src/Core/products/Parallelizer.h	Fri May 28 10:18:37 2010 +0200
+++ b/Eigen/src/Core/products/Parallelizer.h	Tue Jun 01 07:09:40 2010 -0600
@@ -71,7 +71,8 @@
   typedef typename Functor::BlockBScalar BlockBScalar;
   BlockBScalar* sharedBlockB = new BlockBScalar[func.sharedBlockBSize()];
 
-  GemmParallelInfo<BlockBScalar>* info = new GemmParallelInfo<BlockBScalar>[threads];
+  GemmParallelInfo<BlockBScalar,Index>* info = new
+		  GemmParallelInfo<BlockBScalar,Index>[threads];
 
   #pragma omp parallel for schedule(static,1) num_threads(threads)
   for(Index i=0; i<threads; ++i)


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/