Dear Professors£¬<div> I have two question.</div><div>One:<br><div> Now, we need to record some information of processed nodes.</div><div> I tried using a std::vector to hold some Member variables like bellow </div>
<div> in the function of Alps/scr/AlpsSubTree.cpp AlpsReturnStatus AlpsSubTree::exploreUnitWork(),</div><div> in the while loop, when the status of activeNode_ is AlpsNodeStatusPregnant and AlpsNodeStatusFathomed</div>
<div><br></div><div> nodevec.push_back(activeNode_->getIndex());</div><div> nodevec.push_back(activeNode_->getParentIndex());</div><div> nodevec.push_back(activeNode_->getDepth());</div>
<div> nodevec.push_back(activeNode_->getStatus());</div><div> the nodevec is vector<int>.</div><div> There is nothing wrong when compiling.</div><div> But when I <span style="background-color:rgb(255,255,255)"><font face="arial, sans-serif"><span style="white-space:nowrap">execute jobs the program will exit with some wrong signal like this:</span></font></span></div>
<div><font face="arial, sans-serif"><span style="white-space:nowrap"><br></span></font></div><div><span style="background-color:rgb(255,255,255)"><div><div><font face="arial, sans-serif"><span style="white-space:nowrap">[node101:08891] *** Process received signal ***</span></font></div>
<div><font face="arial, sans-serif"><span style="white-space:nowrap">[node101:08891] Signal: Segmentation fault (11)</span></font></div><div><font face="arial, sans-serif"><span style="white-space:nowrap">[node101:08891] Signal code: Address not mapped (1)</span></font></div>
<div><font face="arial, sans-serif"><span style="white-space:nowrap">[node101:08891] Failing at address: (nil)</span></font></div><div><font face="arial, sans-serif"><span style="white-space:nowrap">[node101:08891] [ 0] /lib64/libpthread.so.0(+0xf5d0) [0x2afac505d5d0]</span></font></div>
<div><font face="arial, sans-serif"><span style="white-space:nowrap">[node101:08891] [ 1] /dawnfs/users/zhan/Blis/bin/blis(_ZN11AlpsSubTree15exploreUnitWorkEbidR14AlpsExitStatusRiRSt6vectorIiSaIiEES6_S2_S2_S2_Rb+0x940) [0x4b5940]</span></font></div>
<div><font face="arial, sans-serif"><span style="white-space:nowrap">[node101:08891] [ 2] /dawnfs/users/zhan/Blis/bin/blis(_ZN22AlpsKnowledgeBrokerMPI13doOneUnitWorkEidR14AlpsExitStatusRiRSt6vectorIiSaIiEES6_S2_Rb+0x20d) [0x4d7e6d]</span></font></div>
<div><font face="arial, sans-serif"><span style="white-space:nowrap">[node101:08891] [ 3] /dawnfs/users/zhan/Blis/bin/blis(_ZN22AlpsKnowledgeBrokerMPI10workerMainEv+0x92e) [0x4cc03e]</span></font></div><div><font face="arial, sans-serif"><span style="white-space:nowrap">[node101:08891] [ 4] /dawnfs/users/zhan/Blis/bin/blis(_ZN22AlpsKnowledgeBrokerMPI10rootSearchEP12AlpsTreeNode+0x7c) [0x4bc7ec]</span></font></div>
<div><font face="arial, sans-serif"><span style="white-space:nowrap">[node101:08891] [ 5] /dawnfs/users/zhan/Blis/bin/blis(_ZN22AlpsKnowledgeBrokerMPI6searchEP9AlpsModel+0x37) [0x4bc767]</span></font></div><div><font face="arial, sans-serif"><span style="white-space:nowrap">[node101:08891] [ 6] /dawnfs/users/zhan/Blis/bin/blis(main+0x50d) [0x46bc4d]</span></font></div>
<div><font face="arial, sans-serif"><span style="white-space:nowrap">[node101:08891] [ 7] /lib64/libc.so.6(__libc_start_main+0xe6) [0x2afac5289bc6]</span></font></div><div><font face="arial, sans-serif"><span style="white-space:nowrap">[node101:08891] [ 8] /dawnfs/users/zhangtong/Blis/bin/blis() [0x46b679]</span></font></div>
<div style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap"><br></div></div><div style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap"> Every worker has this signal.</div><div style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap">
Why is this?</div><div style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap"><br></div><div style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap">Two:</div><div style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap">
I need to pass some information of every TreeNode on the search tree of every worker.</div><div style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap"> And mainly, I want to this just like worker passing NumNodesProcessed to hub and then hub report to master.</div>
<div style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap"> My question is that are there any other ways to do this?</div><div style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap"> Will the subtreepool or nodepool helps?</div>
<div><font face="arial, sans-serif"><span style="white-space:nowrap"> For they are used to store uncompleted subtree or unexplored nodes.</span></font></div><div><font face="arial, sans-serif"><span style="white-space:nowrap"> While I need processed Nodes, and they are either fathomed or branched nodes. </span></font></div>
</span></div></div>