Re: [Gems-users] Garnet Network Debugging


Date: Thu, 23 Jul 2009 17:01:32 -0700
From: Niket Agarwal <niketa@xxxxxxxxxxxxx>
Subject: Re: [Gems-users] Garnet Network Debugging
You should run the ruby tester and not Simics if you are unsure about the correct functionality of your code. You can run a small number of memory references to see what's going on.
You should add debugs at links and routers to see what is happening.

Internally, we use our version of ruby tester in which we feed network traces to Garnet. Send me an email if you want the network tester.

Cheers,
Niket

Huaping Wu wrote:
Dear Gems-Users,

I am developing an adaptive router structure based on Garnet Network. I get headache on debugging the code changed in \ruby\network\garnet-fixed-pipeline. Currently, the debug environment is --

1) change code in \garnet-fixed-pipeline
2) compile ruby (which is successful)
3) run Simics, load checkpoint (with benchmark program) and then load ruby module
4) run benchmark program, get error after press "c"
        Segmentation fault (SIGSEGV) in main thread
        The simulation state has been corrupted. Simulation cannot continue.
        Please restart Simics.
        [cpu0] cs:0xc0106eac p:0x00106eac  hlt

Before certain changes, I can successfully run the benchmark program in Simics, and get stats in output file. There must be some logic errors corrupt network function. But, I can't get efficient error information for debugging.

My questions are 
1) How can I enable "Internal Ruby Testers" like Random test, so I don't need enable Simics? Is there any document for reference?
2) Is there any tool or method which support Garnet code debug efficiently (like run step by step)?
3) How can I get accurate error information (like print debug message)? 

Any reply will be appreciated. Thanks in advance.

Best regards,
Ben


_______________________________________________ Gems-users mailing list Gems-users@xxxxxxxxxxx https://lists.cs.wisc.edu/mailman/listinfo/gems-users Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.

[← Prev in Thread] Current Thread [Next in Thread→]