Discussion:
[gem5-users] fatal: Number of ISAs (0) assigned to the CPU does not equal number of threads (1)
Jimmy Situ
2018-07-18 06:35:50 UTC
Permalink
Hi, All


I try to run FS mode with gem5, but I get an fatal like this
fatal: Number of ISAs (0) assigned to the CPU does not equal number of threads (1)


An answer of this issue from google search is to call createThreads() method. I try this call but it doesn't work for my case


My configure file (run.py and system.py) is here
https://github.com/jimmysitu/gem5-bench/blob/master/configs/run.py
https://github.com/jimmysitu/gem5-bench/blob/master/configs/system.py


I almost follow the ones on powerjg/gem5
https://github.com/powerjg/gem5/tree/features/simplefs/configs/myconfigs


Do I miss anything else?
Thanks.


------------------
Jimmy Situ
Jimmy Situ
2018-07-19 14:25:33 UTC
Permalink
Hi, All


I think I found the root cause of this issue, I define a timing cpu model in the createCPU(), and missing the createThreads() call
My code is below:
def createCPU(self):
self.cpu = [AtomicSimpleCPU(cpu_id = i, switched_out = False)
for i in range(self._opts.cpus)]
self.mem_mode = 'atomic'
for cpu in self.cpu:
cpu.createThreads()



self.timingCpu = [DerivO3CPU(cpu_id = i, switched_out = True)
for i in range(self._opts.cpus)]
for cpu in self.timingCpu:
cpu.createThreads()


I still not quite under the usage of createThreads(), can any one help explain this?
Thanks.


------------------

Jimmy Situ





------------------ Ô­ÊŒÓÊŒþ ------------------
·¢ŒþÈË: "web"<***@jimmystone.cn>;
·¢ËÍʱŒä: 2018Äê7ÔÂ18ÈÕ(ÐÇÆÚÈý) ÏÂÎç2:35
ÊÕŒþÈË: "gem5 users mailing l"<gem5-***@gem5.org>;

Ö÷Ìâ: [gem5-users] fatal: Number of ISAs (0) assigned to the CPU does notequal number of threads (1)


Hi, All


I try to run FS mode with gem5, but I get an fatal like this
fatal: Number of ISAs (0) assigned to the CPU does not equal number of threads (1)


An answer of this issue from google search is to call createThreads() method. I try this call but it doesn't work for my case


My configure file (run.py and system.py) is here
https://github.com/jimmysitu/gem5-bench/blob/master/configs/run.py
https://github.com/jimmysitu/gem5-bench/blob/master/configs/system.py


I almost follow the ones on powerjg/gem5
https://github.com/powerjg/gem5/tree/features/simplefs/configs/myconfigs


Do I miss anything else?
Thanks.


------------------
Jimmy Situ
Jason Lowe-Power
2018-07-19 15:59:42 UTC
Permalink
Hi Jimmy,

Oops. I thought I sent this yesterday... sorry :). It looks like you
figured it out in the meantime.

That branch is a little old. You also need to call createThreads() on the
timingCpus. See
https://github.com/darchr/gem5/blob/feature/simplefs/configs/myconfigs/system/system.py#L140

createThreads() does some boilerplate setting up of the threads for the
CPUs, like setting the ISA. This could be done in the runscripts, but it
would be code that was duplicated in each instance. I think this could have
a better API, and I wish I had time to work on it!

Cheers,
Jason
Post by Jimmy Situ
Hi, All
I think I found the root cause of this issue, I define a timing cpu
model in the createCPU(), and missing the createThreads() call
self.cpu = [AtomicSimpleCPU(cpu_id = i, switched_out = False)
for i in range(self._opts.cpus)]
self.mem_mode = 'atomic'
cpu.createThreads()
self.timingCpu = [DerivO3CPU(cpu_id = i, switched_out = True)
for i in range(self._opts.cpus)]
cpu.createThreads()
I still not quite under the usage of createThreads(), can any one help explain this?
Thanks.
------------------
Jimmy Situ
------------------ 原始邮件 ------------------
*发送时闎:* 2018幎7月18日(星期䞉) 䞋午2:35
*䞻题:* [gem5-users] fatal: Number of ISAs (0) assigned to the CPU does
notequal number of threads (1)
Hi, All
I try to run FS mode with gem5, but I get an fatal like this
fatal: Number of ISAs (0) assigned to the CPU does not equal number of threads (1)
An answer of this issue from google search is to call createThreads()
method. I try this call but it doesn't work for my case
My configure file (run.py and system.py) is here
https://github.com/jimmysitu/gem5-bench/blob/master/configs/run.py
https://github.com/jimmysitu/gem5-bench/blob/master/configs/system.py
I almost follow the ones on powerjg/gem5
https://github.com/powerjg/gem5/tree/features/simplefs/configs/myconfigs
Do I miss anything else?
Thanks.
------------------
Jimmy Situ
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Jimmy Situ
2018-07-21 03:39:41 UTC
Permalink
Hi, Joson


Thanks for your explanation and help.
I am now run into another cache hierarchy problem with gem5. I may raise a mail with different title talk about it.


Thanks.

------------------
Jimmy Situ





------------------ Ô­ÊŒÓÊŒþ ------------------
·¢ŒþÈË: "Jason Lowe-Power"<***@lowepower.com>;
·¢ËÍʱŒä: 2018Äê7ÔÂ19ÈÕ(ÐÇÆÚËÄ) ÍíÉÏ11:59
ÊÕŒþÈË: "gem5 users mailing l"<gem5-***@gem5.org>;

Ö÷Ìâ: Re: [gem5-users]»ØžŽ£º fatal: Number of ISAs (0) assigned to the CPU does notequal number of threads (1)


Hi Jimmy,


Oops. I thought I sent this yesterday... sorry :). It looks like you figured it out in the meantime.


That branch is a little old. You also need to call createThreads() on the timingCpus. See https://github.com/darchr/gem5/blob/feature/simplefs/configs/myconfigs/system/system.py#L140


createThreads() does some boilerplate setting up of the threads for the CPUs, like setting the ISA. This could be done in the runscripts, but it would be code that was duplicated in each instance. I think this could have a better API, and I wish I had time to work on it!


Cheers,
Jason



On Thu, Jul 19, 2018 at 7:25 AM Jimmy Situ <***@jimmystone.cn> wrote:

Hi, All


I think I found the root cause of this issue, I define a timing cpu model in the createCPU(), and missing the createThreads() call
My code is below:
def createCPU(self):
self.cpu = [AtomicSimpleCPU(cpu_id = i, switched_out = False)
for i in range(self._opts.cpus)]
self.mem_mode = 'atomic'
for cpu in self.cpu:
cpu.createThreads()



self.timingCpu = [DerivO3CPU(cpu_id = i, switched_out = True)
for i in range(self._opts.cpus)]
for cpu in self.timingCpu:
cpu.createThreads()


I still not quite under the usage of createThreads(), can any one help explain this?
Thanks.


------------------

Jimmy Situ





------------------ Ô­ÊŒÓÊŒþ ------------------
·¢ŒþÈË: "web"<***@jimmystone.cn>;
·¢ËÍʱŒä: 2018Äê7ÔÂ18ÈÕ(ÐÇÆÚÈý) ÏÂÎç2:35
ÊÕŒþÈË: "gem5 users mailing l"<gem5-***@gem5.org>;

Ö÷Ìâ: [gem5-users] fatal: Number of ISAs (0) assigned to the CPU does notequal number of threads (1)


Hi, All


I try to run FS mode with gem5, but I get an fatal like this
fatal: Number of ISAs (0) assigned to the CPU does not equal number of threads (1)


An answer of this issue from google search is to call createThreads() method. I try this call but it doesn't work for my case


My configure file (run.py and system.py) is here
https://github.com/jimmysitu/gem5-bench/blob/master/configs/run.py
https://github.com/jimmysitu/gem5-bench/blob/master/configs/system.py


I almost follow the ones on powerjg/gem5
https://github.com/powerjg/gem5/tree/features/simplefs/configs/myconfigs


Do I miss anything else?
Thanks.


------------------
Jimmy Situ







_______________________________________________
gem5-users mailing list
gem5-***@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Loading...