Normally the CPUs operate independently, so if one stalls, the others just keep on going.
CPU switching etc. is covered here: http://gem5.org/Checkpoints#Switchover.2FFastforwarding Steve On Wed, Jun 12, 2013 at 2:18 PM, Yanqi Zhou <yan...@princeton.edu> wrote: > Thanks Steve, > I have a question regarding cpu switch. What triggers the cpu switch in > gem5 by default? What happens to cpu1 if cpu0 is stalled for a long time > (due to a cache miss or something)? > > Yanqi > ------------------------------ > *From:* gem5-users-boun...@gem5.org [gem5-users-boun...@gem5.org] on > behalf of Steve Reinhardt [ste...@gmail.com] > *Sent:* Wednesday, June 12, 2013 4:29 PM > > *To:* gem5 users mailing list > *Subject:* Re: [gem5-users] Thread switch > > switchOut() is used for fast forwarding or sampling, where you are > using two different CPU models (one simpler and one more detailed) to > represent the same logical CPU. > > Steve > > > On Wed, Jun 12, 2013 at 12:59 PM, Yanqi Zhou <yan...@princeton.edu> wrote: > >> Hi Steve, >> I also tried : cpu->switchOut(); >> This results in error: >> build/ALPHA/sim/eventq.hh:491: void EventQueue::schedule(Event*, Tick): >> Assertion `(UTick)when >= (UTick)curTick()' failed. >> Program aborted at cycle -41326055636 >> >> Is that because the tick of next event does not match current tick? I am >> confused here. >> >> Thanks, >> >> ------------------------------ >> *From:* gem5-users-boun...@gem5.org [gem5-users-boun...@gem5.org] on >> behalf of Yanqi Zhou [yan...@princeton.edu] >> *Sent:* Wednesday, June 12, 2013 3:50 PM >> >> *To:* gem5 users mailing list >> *Subject:* Re: [gem5-users] Thread switch >> >> Hi Steve, >> I am running full system mode. Threads are on different CPUs. For >> instance I allocate 4 CPUs for 4-thread programs. >> Thanks, >> Yanqi >> ------------------------------ >> *From:* gem5-users-boun...@gem5.org [gem5-users-boun...@gem5.org] on >> behalf of Steve Reinhardt [ste...@gmail.com] >> *Sent:* Wednesday, June 12, 2013 3:43 PM >> *To:* gem5 users mailing list >> *Subject:* Re: [gem5-users] Thread switch >> >> Hi Yanqi, >> >> It's hard to answer your question without more information about your >> situation. For example, are you running in full system mode or syscall >> emulation mode? Are you talking about threads on the same CPU, or on >> different CPUs? >> >> Steve >> >> >> >> On Tue, Jun 11, 2013 at 5:22 PM, Yanqi Zhou <yan...@princeton.edu> wrote: >> >>> Hey everyone, >>> Do anyone know how to force a thread switch when running multithreaded >>> benchmark, such as PARSEC? I am not a good hacker, and cannot figure out a >>> way... >>> I appreciate any suggestion. >>> Yanqi >>> >>> _______________________________________________ >>> 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