Re: [gem5-dev] Review Request 2849: config, SMT: Enabling SMT for multi-threaded programs

2015-06-17 Thread Andreas Sandberg

---
This is an automatically generated e-mail. To reply, visit:
http://reviews.gem5.org/r/2849/#review6494
---

Ship it!


I just got an explanation that I'm happy with.

- Andreas Sandberg


On June 1, 2015, 3:07 p.m., Alexandru Dutu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> http://reviews.gem5.org/r/2849/
> ---
> 
> (Updated June 1, 2015, 3:07 p.m.)
> 
> 
> Review request for Default.
> 
> 
> Repository: gem5
> 
> 
> Description
> ---
> 
> Changeset 10858:cc93e6609fc3
> ---
> config, SMT: Enabling SMT for multi-threaded programs
> This patch helps enabling SMT by adding a new argument to specify the number
> of hardware threads.
> 
> 
> Diffs
> -
> 
>   configs/common/Options.py d02b45a554b52c68cce41e1b3895fb8582a639dd 
>   configs/example/se.py d02b45a554b52c68cce41e1b3895fb8582a639dd 
>   src/cpu/o3/cpu.cc d02b45a554b52c68cce41e1b3895fb8582a639dd 
>   src/cpu/o3/inst_queue_impl.hh d02b45a554b52c68cce41e1b3895fb8582a639dd 
> 
> Diff: http://reviews.gem5.org/r/2849/diff/
> 
> 
> Testing
> ---
> 
> Quick regressions passed for all ISAs.
> 
> 
> Thanks,
> 
> Alexandru Dutu
> 
>

___
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev


Re: [gem5-dev] Review Request 2849: config, SMT: Enabling SMT for multi-threaded programs

2015-06-15 Thread Alexandru Dutu


> On June 15, 2015, 7:28 p.m., Andreas Sandberg wrote:
> > configs/example/se.py, line 237
> > 
> >
> > This seems a bit smelly. Shouldn't you at least provide a warning if 
> > this happens? I'd almost consider it a fatal error.

I don't see a good reason to provide a warning. Just because we are 
initializing the cpu object with a bogus process it does not mean that the 
process will start executing. Clone will make sure later on that the process is 
switched with a valid one and only then execution is started.


> On June 15, 2015, 7:28 p.m., Andreas Sandberg wrote:
> > src/cpu/o3/cpu.cc, line 364
> > 
> >
> > Will this still be empty? Won't this just reuse an existing workload?

Again, this will not start executing. Clone will make sure the right process 
will execute. Unfortunately, the CPU model constructor requires a workload to 
be assigned and passing a NULL will cause problems for other threads when the 
TLBs are initialize if I remember correctly.


- Alexandru


---
This is an automatically generated e-mail. To reply, visit:
http://reviews.gem5.org/r/2849/#review6482
---


On June 1, 2015, 2:07 p.m., Alexandru Dutu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> http://reviews.gem5.org/r/2849/
> ---
> 
> (Updated June 1, 2015, 2:07 p.m.)
> 
> 
> Review request for Default.
> 
> 
> Repository: gem5
> 
> 
> Description
> ---
> 
> Changeset 10858:cc93e6609fc3
> ---
> config, SMT: Enabling SMT for multi-threaded programs
> This patch helps enabling SMT by adding a new argument to specify the number
> of hardware threads.
> 
> 
> Diffs
> -
> 
>   configs/common/Options.py d02b45a554b52c68cce41e1b3895fb8582a639dd 
>   configs/example/se.py d02b45a554b52c68cce41e1b3895fb8582a639dd 
>   src/cpu/o3/cpu.cc d02b45a554b52c68cce41e1b3895fb8582a639dd 
>   src/cpu/o3/inst_queue_impl.hh d02b45a554b52c68cce41e1b3895fb8582a639dd 
> 
> Diff: http://reviews.gem5.org/r/2849/diff/
> 
> 
> Testing
> ---
> 
> Quick regressions passed for all ISAs.
> 
> 
> Thanks,
> 
> Alexandru Dutu
> 
>

___
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev


Re: [gem5-dev] Review Request 2849: config, SMT: Enabling SMT for multi-threaded programs

2015-06-15 Thread Andreas Sandberg

---
This is an automatically generated e-mail. To reply, visit:
http://reviews.gem5.org/r/2849/#review6482
---



configs/example/se.py (line 224)


This seems a bit smelly. Shouldn't you at least provide a warning if this 
happens? I'd almost consider it a fatal error.



src/cpu/o3/cpu.cc (line 218)


I'd suggest making this a fatal error instead of a warning.



src/cpu/o3/cpu.cc (line 357)


Will this still be empty? Won't this just reuse an existing workload?


- Andreas Sandberg


On June 1, 2015, 3:07 p.m., Alexandru Dutu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> http://reviews.gem5.org/r/2849/
> ---
> 
> (Updated June 1, 2015, 3:07 p.m.)
> 
> 
> Review request for Default.
> 
> 
> Repository: gem5
> 
> 
> Description
> ---
> 
> Changeset 10858:cc93e6609fc3
> ---
> config, SMT: Enabling SMT for multi-threaded programs
> This patch helps enabling SMT by adding a new argument to specify the number
> of hardware threads.
> 
> 
> Diffs
> -
> 
>   configs/common/Options.py d02b45a554b52c68cce41e1b3895fb8582a639dd 
>   configs/example/se.py d02b45a554b52c68cce41e1b3895fb8582a639dd 
>   src/cpu/o3/cpu.cc d02b45a554b52c68cce41e1b3895fb8582a639dd 
>   src/cpu/o3/inst_queue_impl.hh d02b45a554b52c68cce41e1b3895fb8582a639dd 
> 
> Diff: http://reviews.gem5.org/r/2849/diff/
> 
> 
> Testing
> ---
> 
> Quick regressions passed for all ISAs.
> 
> 
> Thanks,
> 
> Alexandru Dutu
> 
>

___
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev


Re: [gem5-dev] Review Request 2849: config, SMT: Enabling SMT for multi-threaded programs

2015-06-01 Thread Alexandru Dutu

---
This is an automatically generated e-mail. To reply, visit:
http://reviews.gem5.org/r/2849/
---

(Updated June 1, 2015, 2:07 p.m.)


Review request for Default.


Changes
---

Resubmitting because of broken diffs.


Repository: gem5


Description (updated)
---

Changeset 10858:cc93e6609fc3
---
config, SMT: Enabling SMT for multi-threaded programs
This patch helps enabling SMT by adding a new argument to specify the number
of hardware threads.


Diffs (updated)
-

  configs/common/Options.py d02b45a554b52c68cce41e1b3895fb8582a639dd 
  configs/example/se.py d02b45a554b52c68cce41e1b3895fb8582a639dd 
  src/cpu/o3/cpu.cc d02b45a554b52c68cce41e1b3895fb8582a639dd 
  src/cpu/o3/inst_queue_impl.hh d02b45a554b52c68cce41e1b3895fb8582a639dd 

Diff: http://reviews.gem5.org/r/2849/diff/


Testing
---

Quick regressions passed for all ISAs.


Thanks,

Alexandru Dutu

___
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev


Re: [gem5-dev] Review Request 2849: config, SMT: Enabling SMT for multi-threaded programs

2015-06-01 Thread Mitch Hayenga

---
This is an automatically generated e-mail. To reply, visit:
http://reviews.gem5.org/r/2849/#review6443
---


Diff doesnt apply?

- Mitch Hayenga


On May 28, 2015, 3:36 p.m., Alexandru Dutu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> http://reviews.gem5.org/r/2849/
> ---
> 
> (Updated May 28, 2015, 3:36 p.m.)
> 
> 
> Review request for Default.
> 
> 
> Repository: gem5
> 
> 
> Description
> ---
> 
> Changeset 10858:ea9cc1cc8ec4
> ---
> config, SMT: Enabling SMT for multi-threaded programs
> This patch helps enabling SMT by adding a new argument to specify the number
> of hardware threads.
> 
> 
> Diffs
> -
> 
>   configs/common/Options.py 8d5d12993c63ab032b292ccf3d63d101d2f5ad4b 
>   configs/example/se.py 8d5d12993c63ab032b292ccf3d63d101d2f5ad4b 
>   src/cpu/o3/cpu.cc 8d5d12993c63ab032b292ccf3d63d101d2f5ad4b 
>   src/cpu/o3/inst_queue_impl.hh 8d5d12993c63ab032b292ccf3d63d101d2f5ad4b 
> 
> Diff: http://reviews.gem5.org/r/2849/diff/
> 
> 
> Testing
> ---
> 
> Quick regressions passed for all ISAs.
> 
> 
> Thanks,
> 
> Alexandru Dutu
> 
>

___
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev