gem5-users@gem5.org

The gem5 Users mailing list

View all threads

Problems running ruby example from bootcamp 2024

BN
Beser, Nicholas D.
Sun, Sep 22, 2024 1:43 AM

I tried to follow the charts that were published (06 Modeling Cache Coherence) and I copied the completed code into gem5/src/mem/ruby/protocol. After successfully building the gem5.opt for ALL_MyMSI, I tried to run the script on the ARM Jetson:

$ build/ALL_MyMSI/gem5.opt configs/learning_gem5/part3/simple_ruby.py
gem5 Simulator System.  https://www.gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 version 24.0.0.0
gem5 compiled Sep 21 2024 17:41:24
gem5 started Sep 21 2024 17:54:06
gem5 executing on Gem5ubuntu22, pid 72524
command line: build/ALL_MyMSI/gem5.opt configs/learning_gem5/part3/simple_ruby.py

fatal: This system assumes MSI from learning gem5!

I noticed that there was no youtube video for this charts, so I am not sure how to debug this problem. I am also getting other errors on the X86

Checking whether i386 is declared... no
Checking whether x86_64 is declared... yes
ValueError: Could not find MY_MSI.slicc in PROTOCOL_DIRS:
File "/home/nbeser1/2024/gem5/SConstruct", line 966:
SConscript('src/SConscript', variant_dir=variant_path, exports=exports,
File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line 662:
return method(*args, **kw)
File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line 598:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line 285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/home/nbeser1/2024/gem5/src/SConscript", line 564:
SConscript(os.path.join(root, 'SConscript'), variant_dir=build_dir,
File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line 662:
return method(*args, **kw)
File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line 598:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line 285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/home/nbeser1/2024/gem5/src/mem/ruby/protocol/SConscript", line 99:
raise ValueError("Could not find {}.slicc in PROTOCOL_DIRS".format(

I could use a hint about these two errors.

Nick

I tried to follow the charts that were published (06 Modeling Cache Coherence) and I copied the completed code into gem5/src/mem/ruby/protocol. After successfully building the gem5.opt for ALL_MyMSI, I tried to run the script on the ARM Jetson: $ build/ALL_MyMSI/gem5.opt configs/learning_gem5/part3/simple_ruby.py gem5 Simulator System. https://www.gem5.org gem5 is copyrighted software; use the --copyright option for details. gem5 version 24.0.0.0 gem5 compiled Sep 21 2024 17:41:24 gem5 started Sep 21 2024 17:54:06 gem5 executing on Gem5ubuntu22, pid 72524 command line: build/ALL_MyMSI/gem5.opt configs/learning_gem5/part3/simple_ruby.py fatal: This system assumes MSI from learning gem5! I noticed that there was no youtube video for this charts, so I am not sure how to debug this problem. I am also getting other errors on the X86 Checking whether __i386__ is declared... no Checking whether __x86_64__ is declared... yes ValueError: Could not find MY_MSI.slicc in PROTOCOL_DIRS: File "/home/nbeser1/2024/gem5/SConstruct", line 966: SConscript('src/SConscript', variant_dir=variant_path, exports=exports, File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line 662: return method(*args, **kw) File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line 598: return _SConscript(self.fs, *files, **subst_kw) File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line 285: exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals) File "/home/nbeser1/2024/gem5/src/SConscript", line 564: SConscript(os.path.join(root, 'SConscript'), variant_dir=build_dir, File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line 662: return method(*args, **kw) File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line 598: return _SConscript(self.fs, *files, **subst_kw) File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line 285: exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals) File "/home/nbeser1/2024/gem5/src/mem/ruby/protocol/SConscript", line 99: raise ValueError("Could not find {}.slicc in PROTOCOL_DIRS".format( I could use a hint about these two errors. Nick
JL
Jason Lowe-Power
Mon, Sep 23, 2024 3:10 PM

Hi Nick,

It looks like I need to add a slide to that deck :).

You need to add/modify a Kconfig file like this one:
https://github.com/gem5/gem5/blob/stable/src/learning_gem5/part3/Kconfig

Cheers,
Jason

On Sat, Sep 21, 2024 at 6:45 PM Beser, Nicholas D. via gem5-users <
gem5-users@gem5.org> wrote:

I tried to follow the charts that were published (06 Modeling Cache
Coherence) and I copied the completed code into gem5/src/mem/ruby/protocol.
After successfully building the gem5.opt for ALL_MyMSI, I tried to run the
script on the ARM Jetson:

$ build/ALL_MyMSI/gem5.opt configs/learning_gem5/part3/simple_ruby.py

gem5 Simulator System.  https://www.gem5.org

gem5 is copyrighted software; use the --copyright option for details.

gem5 version 24.0.0.0

gem5 compiled Sep 21 2024 17:41:24

gem5 started Sep 21 2024 17:54:06

gem5 executing on Gem5ubuntu22, pid 72524

command line: build/ALL_MyMSI/gem5.opt
configs/learning_gem5/part3/simple_ruby.py

fatal: This system assumes MSI from learning gem5!

I noticed that there was no youtube video for this charts, so I am not
sure how to debug this problem. I am also getting other errors on the X86

Checking whether i386 is declared... no
Checking whether x86_64 is declared... yes
ValueError: Could not find MY_MSI.slicc in PROTOCOL_DIRS:
File "/home/nbeser1/2024/gem5/SConstruct", line 966:
SConscript('src/SConscript', variant_dir=variant_path, exports=exports,
File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line
662:
return method(*args, **kw)
File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line
598:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line
285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/home/nbeser1/2024/gem5/src/SConscript", line 564:
SConscript(os.path.join(root, 'SConscript'), variant_dir=build_dir,
File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line
662:
return method(*args, **kw)
File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line
598:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line
285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/home/nbeser1/2024/gem5/src/mem/ruby/protocol/SConscript", line 99:
raise ValueError("Could not find {}.slicc in PROTOCOL_DIRS".format(

I could use a hint about these two errors.

Nick


gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-leave@gem5.org

Hi Nick, It looks like I need to add a slide to that deck :). You need to add/modify a Kconfig file like this one: https://github.com/gem5/gem5/blob/stable/src/learning_gem5/part3/Kconfig Cheers, Jason On Sat, Sep 21, 2024 at 6:45 PM Beser, Nicholas D. via gem5-users < gem5-users@gem5.org> wrote: > I tried to follow the charts that were published (06 Modeling Cache > Coherence) and I copied the completed code into gem5/src/mem/ruby/protocol. > After successfully building the gem5.opt for ALL_MyMSI, I tried to run the > script on the ARM Jetson: > > > > $ build/ALL_MyMSI/gem5.opt configs/learning_gem5/part3/simple_ruby.py > > gem5 Simulator System. https://www.gem5.org > > gem5 is copyrighted software; use the --copyright option for details. > > > > gem5 version 24.0.0.0 > > gem5 compiled Sep 21 2024 17:41:24 > > gem5 started Sep 21 2024 17:54:06 > > gem5 executing on Gem5ubuntu22, pid 72524 > > command line: build/ALL_MyMSI/gem5.opt > configs/learning_gem5/part3/simple_ruby.py > > > > fatal: This system assumes MSI from learning gem5! > > > > I noticed that there was no youtube video for this charts, so I am not > sure how to debug this problem. I am also getting other errors on the X86 > > > > Checking whether __i386__ is declared... no > Checking whether __x86_64__ is declared... yes > ValueError: Could not find MY_MSI.slicc in PROTOCOL_DIRS: > File "/home/nbeser1/2024/gem5/SConstruct", line 966: > SConscript('src/SConscript', variant_dir=variant_path, exports=exports, > File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line > 662: > return method(*args, **kw) > File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line > 598: > return _SConscript(self.fs, *files, **subst_kw) > File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line > 285: > exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals) > File "/home/nbeser1/2024/gem5/src/SConscript", line 564: > SConscript(os.path.join(root, 'SConscript'), variant_dir=build_dir, > File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line > 662: > return method(*args, **kw) > File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line > 598: > return _SConscript(self.fs, *files, **subst_kw) > File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line > 285: > exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals) > File "/home/nbeser1/2024/gem5/src/mem/ruby/protocol/SConscript", line 99: > raise ValueError("Could not find {}.slicc in PROTOCOL_DIRS".format( > > > > I could use a hint about these two errors. > > > > Nick > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-leave@gem5.org >