I guess that only works for openmp programs? Bonzi
------------------------------------------------------ Wang, Hao http://homepages.cae.wisc.edu/~wangh/ Ph.D. candidate Dept. of Electrical & Computer Engineering University of Wisconsin, Madison B.S. from Department of Microelectronics School of Electronics Engineering and Computer Science Peking University On Fri, Sep 6, 2013 at 12:52 PM, Yanqi Zhou <[email protected]> wrote: > Hi Steve, > I used another command from someone other's post: > > export GOMP_CPU_AFFINITY="0 1 2 3" > > It works. > Thanks, > Yanqi > > > ------------------------------ > *From:* [email protected] [[email protected]] on > behalf of Steve Reinhardt [[email protected]] > *Sent:* Friday, September 06, 2013 11:22 AM > *To:* gem5 users mailing list > *Subject:* Re: [gem5-users] Multicore programs > > Hi Yanqi, > > I don't have any idea why the command you tried isn't working. Did you > try it on a real system? > > I've never done this myself, I just looked it up on google. > > Steve > > > On Fri, Sep 6, 2013 at 6:45 AM, Yanqi Zhou <[email protected]> wrote: > >> Hi Steve, >> I tried >> taskset -pc 0 ./astar & taskset -pc 1 ./bzip >> but the program terminates early. >> Can you show me the exact command I should use? >> >> Thanks, >> Yanqi >> ------------------------------ >> *From:* [email protected] [[email protected]] on >> behalf of Steve Reinhardt [[email protected]] >> *Sent:* Thursday, September 05, 2013 11:56 AM >> *To:* gem5 users mailing list >> *Subject:* Re: [gem5-users] Multicore programs >> >> If you're in FS mode, then thread scheduling is controlled by Linux. >> You can run as many programs as you want, just like on a real Linux >> system, and if you have more runnable threads than cores, they will be >> time-sliced by the kernel using its internal thread scheduling algorithm. >> >> Your ability to bind threads to cores is the same as on a real Linux >> system, e.g., see: >> http://linux.die.net/man/2/sched_setaffinity >> http://linux.die.net/man/1/taskset >> >> Steve >> >> >> >> >> On Wed, Sep 4, 2013 at 1:37 PM, Zheng Wu <[email protected]> wrote: >> >>> Hi, >>> >>> Depends on whether you're running them in SE mode or FS mode. In SE >>> mode, you can simply specify the benchmark you want to run with the >>> following command line options: >>> >>> ./gem5.opt config/example/se.py -c "<path to astar>;<path to bzip>" -o >>> "<astar options>;<bzip options>" --num-cpus 2 >>> >>> I am not sure about FS mode, hope this helps. >>> >>> Best, >>> Zheng >>> >>> On 2013-09-04, at 12:49 PM, Yanqi Zhou <[email protected]> wrote: >>> >>> Hi Everyone, >>> How can I run multiple different programs on different cores? For >>> example, I need to run "astar" and "bzip" on two different cores, and >>> gather traces for each of the tow. >>> Can anyone share me some tips running multi-programs? >>> >>> Thanks, >>> Yanqi >>> _______________________________________________ >>> gem5-users mailing list >>> [email protected] >>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>> >>> >>> >>> _______________________________________________ >>> gem5-users mailing list >>> [email protected] >>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>> >> >> >> _______________________________________________ >> gem5-users mailing list >> [email protected] >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> > > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
