Thank you Jason On Wed, Oct 12, 2016 at 4:39 PM, Jason Lowe-Power <ja...@lowepower.com> wrote:
> This should work. > > Attached is a diff for the simple.py script in > configs/learning_gem5/part1/ that has 4 CPUs and runs hello 4 times. > Hopefully this helps. > > For a multithreaded application, I believe you'll use a similar config > script (instantiate multiple processes all with the same binary file path). > Then, the binaries should be linked to m5threads instead of pthreads. > > Jason > > On Mon, Oct 10, 2016 at 8:16 AM anoir nechi <anoirne...@gmail.com> wrote: > >> >> >> *Hi * >> >> *I wrote a configuration script for a multicore system based on ARM and >> it seems fine except for the workload. i wanted to try testing the >> configuration by assigning a hello world executable for each CPU.* >> *I tried creating different processes but I've got some indexing error >> then i made a for loop like this:* >> i=0 >> for i in xrange(np): >> process = LiveProcess() >> process.cmd = ['tests/test-progs/hello/bin/arm/linux/hello'] >> system.cpu[i].workload = process >> system.cpu[i].createThreads() >> *and all i get is this :* >> Global frequency set at 1000000000000 ticks per second >> warn: DRAM device capacity (4096 Mbytes) does not match the address range >> assigned (512 Mbytes) >> 0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000 >> 0: system.remote_gdb.listener: listening for remote gdb #1 on port 7001 >> 0: system.remote_gdb.listener: listening for remote gdb #2 on port 7002 >> 0: system.remote_gdb.listener: listening for remote gdb #3 on port 7003 >> >> *it suppose to show 4 x Hello World!. i don't understand the problem!!* >> >> *One other thing, i know that to use a multithreaded application I have >> to use the m5threads, But, do I have to apply some changes to my >> configuration script to support the multithreaded applications ?* >> >> *Thank you* >> >> *PS : Attached the configuration script* >> -- >> *Anouar NECHI* >> >> >> *IT Engineer : Industrial systemsHigher Institute of Computer Science* >> >> >> _______________________________________________ >> >> 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 > -- *Anouar NECHI* *IT Engineer : Industrial systemsHigher Institute of Computer ScienceTunis - El Manar University* *Phone :* *(+216) 50 311 536* *E-mail :* *anoirne...@gmail.com <anoirne...@gmail.com>*
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users