[CHiPPS] Problem About Recording Processeced nodes

化高峰 shimuxi at gmail.com
Thu Jun 7 03:44:37 EDT 2012


Dear Professors,
    I have two question.
One:
     Now, we need to record some information of processed nodes.
     I tried using a std::vector to hold some Member variables like bellow
     in the function of Alps/scr/AlpsSubTree.cpp
 AlpsReturnStatus AlpsSubTree::exploreUnitWork(),
     in the while loop, when the status of activeNode_ is
AlpsNodeStatusPregnant and AlpsNodeStatusFathomed

                nodevec.push_back(activeNode_->getIndex());
                nodevec.push_back(activeNode_->getParentIndex());
                nodevec.push_back(activeNode_->getDepth());
                nodevec.push_back(activeNode_->getStatus());
     the nodevec is vector<int>.
     There is nothing wrong when compiling.
     But when I execute jobs the program will exit with some
wrong signal like this:

[node101:08891] *** Process received signal ***
[node101:08891] Signal: Segmentation fault (11)
[node101:08891] Signal code: Address not mapped (1)
[node101:08891] Failing at address: (nil)
[node101:08891] [ 0] /lib64/libpthread.so.0(+0xf5d0) [0x2afac505d5d0]
[node101:08891] [ 1]
/dawnfs/users/zhan/Blis/bin/blis(_ZN11AlpsSubTree15exploreUnitWorkEbidR14AlpsExitStatusRiRSt6vectorIiSaIiEES6_S2_S2_S2_Rb+0x940)
[0x4b5940]
[node101:08891] [ 2]
/dawnfs/users/zhan/Blis/bin/blis(_ZN22AlpsKnowledgeBrokerMPI13doOneUnitWorkEidR14AlpsExitStatusRiRSt6vectorIiSaIiEES6_S2_Rb+0x20d)
[0x4d7e6d]
[node101:08891] [ 3]
/dawnfs/users/zhan/Blis/bin/blis(_ZN22AlpsKnowledgeBrokerMPI10workerMainEv+0x92e)
[0x4cc03e]
[node101:08891] [ 4]
/dawnfs/users/zhan/Blis/bin/blis(_ZN22AlpsKnowledgeBrokerMPI10rootSearchEP12AlpsTreeNode+0x7c)
[0x4bc7ec]
[node101:08891] [ 5]
/dawnfs/users/zhan/Blis/bin/blis(_ZN22AlpsKnowledgeBrokerMPI6searchEP9AlpsModel+0x37)
[0x4bc767]
[node101:08891] [ 6] /dawnfs/users/zhan/Blis/bin/blis(main+0x50d) [0x46bc4d]
[node101:08891] [ 7] /lib64/libc.so.6(__libc_start_main+0xe6)
[0x2afac5289bc6]
[node101:08891] [ 8] /dawnfs/users/zhangtong/Blis/bin/blis() [0x46b679]

     Every worker has this signal.
Why is this?

Two:
     I need to pass some information of every TreeNode on the search tree
of every worker.
     And mainly, I want to this just like worker passing NumNodesProcessed
to hub and then hub report to master.
     My question is that are there any other ways to do this?
     Will the subtreepool or nodepool helps?
     For they are used to store uncompleted subtree or unexplored nodes.
     While I need processed Nodes, and they are either fathomed
or branched nodes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/chipps/attachments/20120607/0cfbf5dc/attachment.html>


More information about the CHiPPS mailing list