Re: [gem5-users] Question on how to create a command line options for a switch (router) in garnet2.0

2019-08-15 Thread Kimiya Fasahar
Hi Tushar,

I tried running a simple 5x4 cpus in Mesh_XY topology using the command:

idris@idris-HP-EliteBook-8460p:~/Desktop/gem5$
build/Garnet_standalone/gem5.opt configs/example/garnet_synth_traffic.py
--network=garnet2.0 --num-cpus=20 --num-dirs=20 --topology=Mesh_XY
--mesh-rows=5 --sim-cycles=3000 --injectionrate=0.12
--synthetic=uniform_random --routing-algorithm=1

but received the following memory interleaving error.
...
...
...
warn: DRAM device capacity (8192 Mbytes) does not match the address range
assigned (32 Mbytes)
warn: rounding error > tolerance
1.25 rounded to 1
warn: DRAM device capacity (8192 Mbytes) does not match the address range
assigned (32 Mbytes)
fatal: fatal condition intlvBits && intlvMatch >= ULL(1) << intlvBits
occurred: Match value 16 does not fit in 4 interleaving bits
Memory Usage: 94504 KBytes
idris@idris-HP-EliteBook-8460p:~/Desktop/gem5$

Hacking into the above creates a chain reaction.

This is the main reason why I find it difficult to create the pyramid
topology. It seems the simulator can only run a square matrix of (n to
power 2) cpus.

In the decoupling techniques I used, I declared the base layer and the
first upper hierarchy as follows:

1.  routers = [Router(router_id=i, latency=router_latency)\
for i in xrange(num_routers)]# num_routers = 64
network.routers = routers

2.  hier_routers = [Router(router_id=i+j+1, latency=router_latency)
\
for j in range(num_h_routers)]   # num_h_routers = 16
# Update the network routers here

routers.extend(hier_routers)
network.routers = routers

Logs in config.ini shows that all routers were created, all internal links
and external links were also created. But the upper layers router could not
wakeup.
This led me to the first mail I wrote: Inquiry on router wakeup in
garnet2.0. Debug flags cannot see beyond the base layer (64) routers.

That is why I want to replace routers with switches at the upper layers. Do
you thinks that is okay? or is there something wrong with the technique I
deploy?

Thanks

Kimiya F.

On Thu, Aug 15, 2019 at 5:00 PM  wrote:

> Send gem5-users mailing list submissions to
> gem5-users@gem5.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
> or, via email, send a message with subject or body 'help' to
> gem5-users-requ...@gem5.org
>
> You can reach the person managing the list at
> gem5-users-ow...@gem5.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of gem5-users digest..."
>
>
> Today's Topics:
>
>1. CPUID function 0_7 - CacheParams (Pouya Fotouhi)
>2. Re: CPUID function 0_7 - CacheParams (Gabe Black)
>3. Re: CPUID function 0_7 - CacheParams (Gabe Black)
>4. Re: CPUID function 0_7 - CacheParams (Pouya Fotouhi)
>5. Re: CPUID function 0_7 - CacheParams (Gabe Black)
>6. Re: CPUID function 0_7 - CacheParams (Pouya Fotouhi)
>7. Question on how to create a command line options for a switch
>   (router) in garnet2.0 (Kimiya Fasahar)
>8. Re: Question on how to create a command line options for a
>   switch (router) in garnet2.0 (Krishna, Tushar)
>
>
> --
>
> Message: 1
> Date: Wed, 14 Aug 2019 14:01:26 -0700
> From: Pouya Fotouhi 
> To: gem5 users mailing list 
> Subject: [gem5-users] CPUID function 0_7 - CacheParams
> Message-ID:
>  egdbrjpyu11ibymregobjj7nntzebsypy6azmbjr5v...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi All,
>
> During kernel boot up with the timing/atomic/O3 CPU modes I get the
> following kernel oops at native_flush_tlb_global. Looking closer at the
> issue, Exec traces show:
>
> 2014093750: system.cpu A0 T0 : @native_flush_tlb_global+96: mov
> eax, 0x2
> 2014093750: system.cpu A0 T0 : @native_flush_tlb_global+96.0  :   MOV_R_I :
> limm   eax, 0x2 : IntAlu :  D=0x0002
>  flags=(IsInteger|IsMicroop|IsLastMicroop|IsFirstMicroop)
> 2014094250: system.cpu A0 T0 : @native_flush_tlb_global+101: ud2
> 2014094250: system.cpu A0 T0 : @native_flush_tlb_global+101.0  :   UD2 :
> fault   Invalid-Opcode : No_OpClass :
> flags=(IsMicroop|IsLastMicroop|IsFirstMicroop)
> 2014094500: system.cpu A0 T0 : @native_flush_tlb_global+101.32768 :
> Microcode_ROM : slli   t4, t1, 0x4 : IntAlu :  D=0x0060
>  flags=(IsInteger|IsMicroop|IsDelayedCommit)
>
> Looking at  the decode of the "undefined" instruction raising the fault:
> 2014094250: system.cpu: Decode: Decoded fault instruction:
> {
> leg = 0x10,
> rex = 0,
> vex/xop = 0,
> 

[gem5-users] Question on how to create a command line options for a switch (router) in garnet2.0

2019-08-14 Thread Kimiya Fasahar
Greetings to all.
I am trying to to create an NoC Pyramidal topology that has a base layer of
64 routers, next higher layers of 16 routers and the apex layer of 4
routers.  I used the command line option num-cpus=64 to get the base
layer.  I discovered I cannot enter the 84 routers at once to later split
them into the required layers.
1. How will I use the command line option to enter the remaining routers in
the other layers?
2. If I want to use routing switches as in simple network, How will I enter
the command line argument?
3. Any other guide on how to create the above topology is welcome.
Thanks and best regards.
Kimiya F
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Inquiry on router wakeup in garnet2.0

2019-02-15 Thread Kimiya Fasahar
Greetings to all,
I am new to gem5 and I am trying to develop a hierarchical network on chip
(noc) topology based on Bai *et al *2016.  The noc has a pyramidal
structure with a based layer of 64 routers each connected to network
interface (ni). The 2nd layer has 16 routers that acts purely as switches
(not connected to any ni). The 3rd layer has 4 routers also acting purely
as switches.

Debug printout, using RubyNetwork flag, shows that only the based 64
routers wokeup.  The remaining routers that are not connected to ni did not
wakeup. I went through the .hh and .cc of the following files; router,
basicrouter, consumer, networkinterface and garnetnetwork but could not
figure out how to wakeup these routers.

Can someone please help me out?

Respectfully Yours
Kimiya F.
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users