charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
- From: Tom Quinn <trq AT astro.washington.edu>
- To: charm AT cs.illinois.edu
- Subject: [charm] Compile failure in ckgraphTemp.C on Blue Waters
- Date: Sat, 15 Dec 2012 10:14:42 -0800 (PST)
- List-archive: <http://lists.cs.uiuc.edu/pipermail/charm/>
- List-id: CHARM parallel programming system <charm.cs.uiuc.edu>
Compiling on Blue Waters with "./build ChaNGa gemini_gni-crayxe smp hugepages" gives the following error:
g++ -c -o ckgraphTemp.o ckgraphTemp.C
In file included from ckgraphTemp.h:19:0,
from ckgraphTemp.C:14:
ckgraph.h: In member function 'void ObjGraphTemp::convertToInsts(BaseLB::LDStats*)':
ckgraph.h:145:12: error: 'double Vertex::compLoad' is private
ckgraphTemp.C:35:20: error: within this context
In file included from ckgraphTemp.h:19:0,
from ckgraphTemp.C:14:
ckgraph.h:145:12: error: 'double Vertex::compLoad' is private
ckgraphTemp.C:35:48: error: within this context
In file included from ckgraphTemp.h:19:0,
from ckgraphTemp.C:14:
ckgraph.h:147:9: error: 'int Vertex::currPe' is private
ckgraphTemp.C:35:83: error: within this context
gmake: *** [ckgraphTemp.o] Error 1
Making ObjGraphTemp a friend of Vertex seems to fix this:
diff --git a/src/ck-ldb/ckgraph.h b/src/ck-ldb/ckgraph.h
index f27806f..d14ccd0 100644
--- a/src/ck-ldb/ckgraph.h
+++ b/src/ck-ldb/ckgraph.h
@@ -123,6 +123,7 @@ class McastDest {
class Vertex {
friend class ObjGraph;
+ friend class ObjGraphTemp;
public:
Vertex() {}
Tom Quinn Astronomy, University of Washington
Internet:
trq AT astro.washington.edu
Phone: 206-685-9009
- [charm] Compile failure in ckgraphTemp.C on Blue Waters, Tom Quinn, 12/15/2012
Archive powered by MHonArc 2.6.16.