[eigen] OpenMP compile error |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen] OpenMP compile error
- From: Trevor Irons <trevorirons@xxxxxxxxx>
- Date: Tue, 1 Jun 2010 07:15:08 -0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=HbZxLvQUvUhN/SRUHbhoNNJ5xoPjfQQ9qcnVShquq2c=; b=CZ4CxuFmgoBGytrc16eZXeW9jPL7haM+i8FbRr0ceefIVa9UA8zKda2Jr6frKY8bj+ jTphGvwhhS1sKyeIiAvqftaHlyfUiePy0KiQhLNRo7mHPXbyxOZbtfxqf5Qxm74TrP4f Jf1SH1Bp9GykPptUlgVWttJNe3g69GPa5Wiwc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=kx3FX0siVMokOI1TWw4eaW4FxafbrIzQ5pIRKU73VMsxgvbcTU99I7FDoDuv+5c6UI huJVM+zmN7WK82DzLqk00DIl+QdNfR5YvqMmRwGath5KV1VH0UGGqgxqnV2D44Z2Rof4 9zylYjwtTKQroGcaZ38F3QOE6Hx4ON38PMzwI=
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)