Hi, I used: /scratch/gpfs/yanqiz/temp/gem5/build/ALPHA/gem5.opt --debug-flags=ExecAll,-ExecSymbol -- trace-file=trace_new.out configs/example/fs.py --caches --l1i_size=8kB -- l1d_size=8kB --cpu-type=detailed -n 4 -F 5000000000 --script=bodytrack_4c_simsmall.rcS to run PARSEC multithread program with 4 threads and 4 cpus. But from the generated trace, only cpu numbers differ, not the thread. The thread number is always 0. What is wrong here?
Thanks, ________________________________ From: gem5-users-boun...@gem5.org [gem5-users-boun...@gem5.org] on behalf of Yanqi Zhou [yan...@princeton.edu] Sent: Thursday, May 16, 2013 7:31 PM To: gem5 users mailing list Subject: Re: [gem5-users] multithreading program Hi, I run it in FS mode. Can you tell me the correct command? For instance, I want to run with 4 threads. Also I am curious whether the multithreading in gem5 is deterministic... Thanks, Yanqi ________________________________ From: gem5-users-boun...@gem5.org [gem5-users-boun...@gem5.org] on behalf of Tianyun Zhang [skyzhan...@gmail.com] Sent: Tuesday, May 14, 2013 4:07 PM To: gem5 users mailing list Subject: Re: [gem5-users] multithreading program heya, What's your command to run the simulations? Did u run it in SE or FS? In SE mode, u need to link the m5thread lib for multithread benchmarks like PARSEC. In FS mode, u only need to link the lpthread (if u built the parsec pthread version) and the OS will do all the context switches for u. Also did u turn on any debug flags like ExecAll which prints all the instructions including syscalls. On Tue, May 14, 2013 at 3:54 PM, Yanqi Zhou <yan...@princeton.edu<mailto:yan...@princeton.edu>> wrote: Hey everyone, Has anyone ever run multithreading program in gem5, such as PARSEC? What command should I use? I set the cpu_num to 4, only the system cpu is different in the trace file. How multithreading works in gem5? I cannot see any system call in the trace file, when the threads do a context switch in gem5? Thanks, _______________________________________________ gem5-users mailing list gem5-users@gem5.org<mailto: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