hello sir ,
 I tried as you said by changing the temp destination for the routing
algorithm and added the temp dest variable in the RouteInfo structure also.
But when i run my custom routing algorithm im ending up with Core Aborted
Error

gem5.debug: build/NULL/mem/ruby/network/garnet2.0/RoutingUnit.cc:353: int
RoutingUnit::XY(RouteInfo, int, int, int, PortDirection): Assertion
`!(x_hops == 0 && y_hops == 0)' failed.
enable: 1s1: 9 d1: 14Taking the first part of the routing algorithmsource
id= 9Taking TL from 9 to 14 Taking the TL part of the routing algorithm  tl
out direction 0count 1source id= 14Taking the second part of the routing
algorithmsource id= 14enable: 1s1: 9 d1: 14Taking the first part of the
routing algorithmProgram aborted at tick 59
--- BEGIN LIBC BACKTRACE ---
./build/NULL/gem5.debug(_Z15print_backtracev+0x2e)[0x56295657a6b4]
./build/NULL/gem5.debug(_Z12abortHandleri+0x71)[0x5629565830d5]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7f1d41917890]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f1d4057ee97]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7f1d40580801]
/lib/x86_64-linux-gnu/libc.so.6(+0x3039a)[0x7f1d4057039a]
/lib/x86_64-linux-gnu/libc.so.6(+0x30412)[0x7f1d40570412]
./build/NULL/gem5.debug(_ZN11RoutingUnit2XYE9RouteInfoiiiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x18a)[0x56295675862c]
./build/NULL/gem5.debug(_ZN11RoutingUnit14IsTL_CandidateE9RouteInfoiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x53c)[0x562956758f12]
./build/NULL/gem5.debug(_ZN11RoutingUnit14outportComputeE9RouteInfoiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x21b)[0x562956757b7f]
./build/NULL/gem5.debug(_ZN6Router13route_computeE9RouteInfoiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x8f)[0x56295675698d]
./build/NULL/gem5.debug(_ZN9InputUnit6wakeupEv+0x1b7)[0x562956751d4b]
./build/NULL/gem5.debug(_ZN6Router6wakeupEv+0xe2)[0x5629567563bc]
./build/NULL/gem5.debug(+0xd70ecb)[0x562956c7fecb]
./build/NULL/gem5.debug(+0xd71216)[0x562956c80216]
./build/NULL/gem5.debug(_ZNKSt8functionIFvvEEclEv+0x32)[0x5629564c125a]
./build/NULL/gem5.debug(_ZN20EventFunctionWrapper7processEv+0x1c)[0x5629564bf938]
./build/NULL/gem5.debug(_ZN10EventQueue10serviceOneEv+0xe9)[0x56295658038d]
./build/NULL/gem5.debug(_Z9doSimLoopP10EventQueue+0x20e)[0x5629565892b2]
./build/NULL/gem5.debug(_Z8simulatem+0x339)[0x562956588edd]
./build/NULL/gem5.debug(+0x830d5c)[0x56295673fd5c]
./build/NULL/gem5.debug(+0x82e922)[0x56295673d922]
./build/NULL/gem5.debug(+0x82a68b)[0x56295673968b]
./build/NULL/gem5.debug(+0x82a6f2)[0x5629567396f2]
./build/NULL/gem5.debug(+0x61782b)[0x56295652682b]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x64d7)[0x7f1d41bd1697]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f1d41d03278]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5bf6)[0x7f1d41bd0db6]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f1d41d03278]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCode+0x19)[0x7f1d41bcb029]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6ac0)[0x7f1d41bd1c80]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f1d41d03278]
--- END LIBC BACKTRACE ---
Aborted (core dumped)



Can you Tell me what is wrong sir.

Thanks
Karunya

On Tue, Mar 12, 2019 at 7:22 PM nevethetha ganesan <nevethetha2...@gmail.com>
wrote:

> Thank you sir..
>
> On Tue, 12 Mar, 2019, 7:14 PM Krishna, Tushar <tus...@ece.gatech.edu
> wrote:
>
>> NetDest is a bit vector of destinations - you can do a cout and check.
>> I would suggest looking at RoutingUnit.cc’s outportCompute function
>> where the destination id is used and see the RouteInfo struct.
>> For your case, I think you need to add a temp destination there and use
>> that in RouteCompute instead of the actual destination.
>>
>> Cheers,
>> Tushar
>>
>> On Mar 12, 2019, at 1:55 AM, nevethetha ganesan <nevethetha2...@gmail.com>
>> wrote:
>>
>> Hello Sir,
>> In NetworkInterface.cc  flitisizeMessage() I could not understand what
>> is NetDest personal_dest, removeNetDest(personal_dest) ?
>> IS destID used as NI ID variable ? can destID be used to set temporary
>> destination ?
>>
>> On Tue, Mar 12, 2019 at 10:12 AM Krishna, Tushar <tus...@ece.gatech.edu>
>> wrote:
>>
>>> Take a look at the garnet2.0 wiki and NetworkInterface.cc
>>>
>>> Cheers,
>>> Tushar
>>>
>>> > On Mar 12, 2019, at 12:40 AM, nevethetha ganesan <
>>> nevethetha2...@gmail.com> wrote:
>>> >
>>> > Hello ,
>>> >  I would like to combine two routing algorithms say one for source
>>> router to temporary destination
>>> >  router and another algorithm for temporary destination to original
>>> destination router.so, the head flit of the packet must change its
>>> destination often. There is no clear idea on  where the destination of head
>>> flit is set and how the hop count of both algorithms will get added in gem5
>>> garnet 2.0?  So please help us!!!
>>> _______________________________________________
>>> gem5-users mailing list
>>> gem5-users@gem5.org
>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>> _______________________________________________
>> gem5-users mailing list
>> gem5-users@gem5.org
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>> _______________________________________________
>> gem5-users mailing list
>> gem5-users@gem5.org
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
> _______________________________________________
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to