Hello Hossein,

Thank you very much for your help! I just tried to set the prefetcher in my 
configuration script as you said, and it worked!


Again, I really appreciate the help.


Shawn


------------------ Original ------------------
From: &nbsp;"gem5-users";<gem5-users@gem5.org&gt;;
Send time:&nbsp;Tuesday, Jul 13, 2021 11:38 PM
To:&nbsp;"gem5 users mailing list"<gem5-users@gem5.org&gt;; 
Cc:&nbsp;"Shawn"<shawnliu...@qq.com&gt;; "Hossein 
Golestani"<hosse...@umich.edu&gt;; 
Subject: &nbsp;[gem5-users] Re: Prefetcher Configurations Issue



Hi Shawn,

As for the error you got, I think TaggedPrefetcher should be properly imported 
in that script.


You could also simply enable the prefetcher in the SE mode by adding the 
following to se.py (or similarly, in any other configuration script you are 
using):

system.cpu[0].dcache.prefetcher = TaggedPrefetcher()



Thanks,
Hossein




On Tue, Jul 13, 2021 at 11:02 AM Shawn via gem5-users <gem5-users@gem5.org&gt; 
wrote:

Hello,


I am trying to enable the prefetcher of the cache in SE mode (not Ruby).&nbsp;


After I modified the prefetcher configurations in src/mem/cache/cache.py 
to&nbsp;prefetcher = Param.BasePrefetcher(TaggedPrefetcher(),"Prefetcher 
attached to cache")&nbsp;and compiled it, it gave the error NameError: name 
'TaggedPrefetcher' is not defined.


When I tried the se.py with --l1d-hwp-Type=TaggedPrefetcher, it works 
fine.&nbsp;


I am not sure what causes the issue. Do I have to use the se.py to enable the 
prefetcher in a SE mode simulation?


I will appreciate it if anyone may help.





Thank you very much,
Shawn
_______________________________________________
 gem5-users mailing list -- gem5-users@gem5.org
 To unsubscribe send an email to gem5-users-le...@gem5.org
 %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to