[gem5-users] Re: Run benchmark with multiple input arguments

2022-02-22 Thread Rosen Lu via gem5-users
Hi Jordi,

It works. Thanks for the answer.

Best,
Rosen

Jordi Vaquero  于2022年2月22日周二 03:14写道:

> Hi Rosen,
> try adding  a space before the "-c". So the -o option stays like *-o ' -c
> 10' *
> I found that before and the extra space avoids the problem.
>
> Jordi
>
>
>
>
> ---- Activat Tue, 22 Feb 2022 07:17:57 +0100 *Rosen Lu via gem5-users
> >* va escriure 
>
> Dear All,
>
> I just downloaded the version from
> https://gem5.googlesource.com/public/gem5. I want to run a benchmark with
> multiple input arguments. For example, run the command ./*queens -c 10 *in
> SE mode. I remember in a version from a few years ago, I could run it in
> the simulator with the -o option:
> *build/X86/gem5.opt ./configs/example/se.py -c './queens' -o '-c 10'  *
> But it doesn't work anymore for the current version.  se.py: error:
> argument -o/--options: expected one argument.
>
> Do you have any ideas or suggestions about solving this problem in the
> current version?
> Thank you very much.
>
> Rosen
>
>
>
> ___
> 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

[gem5-users] Run benchmark with multiple input arguments

2022-02-21 Thread Rosen Lu via gem5-users
Dear All,

I just downloaded the version from https://gem5.googlesource.com/public/gem5.
I want to run a benchmark with multiple input arguments. For example, run
the command ./*queens -c 10 *in SE mode. I remember in a version from a few
years ago, I could run it in the simulator with the -o option:
*build/X86/gem5.opt ./configs/example/se.py -c './queens' -o '-c 10'  *
But it doesn't work anymore for the current version.  se.py: error:
argument -o/--options: expected one argument.

Do you have any ideas or suggestions about solving this problem in the
current version?
Thank you very much.

Rosen
___
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] dump stats for every N misses

2020-03-14 Thread Rosen Lu
Hello everyone,

I know that we can call periodStatDump() in se.py to dump stats for every N
cycles. Now I want to dump starts for every N misses, define the period
with the number of misses. Does gem5 has any function to support that? Any
ideas or suggestions would be helpful. Thank you very much.

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

[gem5-users] MSHR entry number

2020-02-14 Thread Rosen Lu
Dear All,

I wonder how to change the mshr entry number? I use X86 O3 detailed CPU
model. I edited the Caches.py, and set the L2 cache mshrs to 20.

class L2Cache(Cache):
assoc = 8
tag_latency = 12
data_latency = 12
response_latency = 12
mshrs = 20
tgts_per_mshr = 12
write_buffers = 8

When I look at config.ini:
[system.l2]
mshrs=20


It looks like the mshrs of L2 has been changed correctly.
However, I printed the size of L2 mshr queue in cache.cc, the maximum
number is only 10.
(I found that isfull function uses the parameter "allocated" to determine
the queue is full or not, so I also utilized "allocated" parameter to see
the size of mshr queue)

So I want to know have I successfully modified the number of mshr?
Is my test method right?  If all I do is right, it should be a matter of
application.

Any ideas or suggestions would be helpful.
Thank you very much.

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

Re: [gem5-users] Pipelined Cache

2020-01-03 Thread Rosen Lu
Hi Jason,

Thank you for your explanation. I want to know is it possible to set the
maximum number of packets which can be accepted by cache per cycle?
In /src/cpu/o3/O3CPU.py, I found there was a parameter which is named
cacheStorePorts, can I change this parameter to set the number of cache
ports for higher concurrency?

Thank you very much.

Best,
Rosen



Jason Lowe-Power  于2020年1月3日周五 上午9:29写道:

> Hi Rosen,
>
> All of the caches in gem5 are pipelined by default. This goes for both the
> classic caches and Ruby. gem5's memory system is implemented by using
> "ports" that you can send "packets" over. All of the caches accept at least
> one packet per cycle (with some caveats depending on conflicting addresses).
>
> Cheers,
> Jason
>
> On Tue, Dec 24, 2019 at 5:56 AM Rosen Lu  wrote:
>
>> Hello,
>>
>> I have a question regarding the pipelined cache. The pipelined cache
>> architecture can be accessed every clock cycle and thereby, enhances
>> bandwidth and overall processor performance. Pipelining divides the cache
>> latency into multiple stages so that multiple accesses can be made
>> simultaneously.
>>
>> By looking at the codes for gem5, I realized that O3 does not seem to
>> take advantage of pipelined cache, I want to know, does gem5
>> support pipelined cache?
>>
>> Any ideas or suggestions would be helpful.
>>
>> Thank you very much.
>> ___
>> 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
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Pipelined Cache

2019-12-24 Thread Rosen Lu
Hello,

I have a question regarding the pipelined cache. The pipelined cache
architecture can be accessed every clock cycle and thereby, enhances
bandwidth and overall processor performance. Pipelining divides the cache
latency into multiple stages so that multiple accesses can be made
simultaneously.

By looking at the codes for gem5, I realized that O3 does not seem to take
advantage of pipelined cache, I want to know, does gem5 support pipelined
cache?

Any ideas or suggestions would be helpful.

Thank you very much.
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Errors while running some SPEC2006 benchmarks

2019-12-23 Thread Rosen Lu
Hello,

I am testing SPEC CPU2006 benchmarks on X86 SE mode, these benchmarks
return an error,  I posted error messages below.

===bwaves===
command line:
build/X86/gem5.opt ./configs/example/se.py --caches --cpu-type=DerivO3CPU
--mem-type=SimpleMemory --mem-size=8192MB -c
'/home/cc/gem5_benchmark/cpu_2006/benchspec/CPU2006/410.bwaves/exe/bwaves_base.amd64-m64-gcc43-nn'
-o
'/home/cc/gem5_benchmark/cpu_2006/benchspec/CPU2006/410.bwaves/data/ref/input/
bwaves.in'

warn: readlink() called on '/proc/self/exe' may yield unexpected results in
various settings.
  Returning
'/home/cc/gem5_benchmark/cpu_2006/benchspec/CPU2006/410.bwaves/exe/bwaves_base.amd64-m64-gcc43-nn'
warn: ignoring syscall rt_sigaction(...)
  (further warnings will be suppressed)
At line 21 of file flow_lam.f (unit = 50, file = 'bwaves.in')
Fortran runtime error: End of file
Exiting @ tick 832938000 because exiting with last active thread context

===zeusmp===
command line:
build/X86/gem5.opt ./configs/example/se.py --caches --cpu-type=DerivO3CPU
--mem-type=SimpleMemory --mem-size=8192MB -c
'/home/cc/gem5_benchmark/cpu_2006/benchspec/CPU2006/434.zeusmp/exe/zeusmp_base.amd64-m64-gcc43-nn'

warn: readlink() called on '/proc/self/exe' may yield unexpected results in
various settings.
  Returning
'/home/cc/gem5_benchmark/cpu_2006/benchspec/CPU2006/434.zeusmp/exe/zeusmp_base.amd64-m64-gcc43-nn'
warn: ignoring syscall rt_sigaction(...)
  (further warnings will be suppressed)
At line 256 of file mstart.f (unit = 1, file = '')
Fortran runtime error: File 'zmp_inp' does not exist
Exiting @ tick 799336000 because exiting with last active thread context


===GemsFDTD===
command line:
build/X86/gem5.opt ./configs/example/se.py --caches --cpu-type=DerivO3CPU
--mem-type=SimpleMemory --mem-size=8192MB -c
/home/cc/gem5_benchmark/cpu_2006/benchspec/CPU2006/459.GemsFDTD/exe/GemsFDTD_base.amd64-m64-gcc43-nn
-o /home/cc/SPEC_CPU2006v1.1/benchspec/CPU2006/459.GemsFDTD/data/ref/input/
ref.in

EXECUTION HALTED ! (in Check_open)

Application could not open file yee.dat

The value of ios was:   2

Exiting @ tick 84346 because exiting with last active thread context


Anyone has successfully worked out one of the benchmarks above? Any
suggestion is appreciated!

Thank you very much.

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

Re: [gem5-users] statistics for each cycle(Tick)

2019-11-25 Thread Rosen Lu
Hello Carlos,

Yes O3CPU.

Francisco Carlos  于2019年11月25日周一 下午12:55写道:

> Hello, Rosen
>
> Which CPU model are you using? O3CPU?
>
>
> --
> Francisco Carlos Silva Junior
> Ph.D. student
>
>
> --
> *De:* gem5-users  em nome de Rosen Lu <
> wisdom@gmail.com>
> *Enviado:* segunda-feira, 25 de novembro de 2019 15:39
> *Para:* gem5 users mailing list 
> *Assunto:* [gem5-users] statistics for each cycle(Tick)
>
> Hello,
>
> I want to implement two functions, these two functions need to be called
> every cycle(Tick). The first function needs to return the number of
> outstanding demand misses in MSHR, it shows the total number of misses in
> MSHR for each cycle. The second function needs to return the number of hits
> occur in each cycle, if no hits in that cycle, it will return 0.
>
> I need the cycle information, so these functions need to be called every
> cycle and get statistics. I want to know how to implement these functions
> in gem5, can I implement the logic in src/mem/cache/cache.cc?
>
> Any ideas or suggestions for implementing would be helpful.
>
> Thank you very much.
>
> Rosen
> ___
> 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

[gem5-users] statistics for each cycle(Tick)

2019-11-25 Thread Rosen Lu
Hello,

I want to implement two functions, these two functions need to be called
every cycle(Tick). The first function needs to return the number of
outstanding demand misses in MSHR, it shows the total number of misses in
MSHR for each cycle. The second function needs to return the number of hits
occur in each cycle, if no hits in that cycle, it will return 0.

I need the cycle information, so these functions need to be called every
cycle and get statistics. I want to know how to implement these functions
in gem5, can I implement the logic in src/mem/cache/cache.cc?

Any ideas or suggestions for implementing would be helpful.

Thank you very much.

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

[gem5-users] Count misses in a cycle

2019-09-16 Thread Rosen Lu
Hi All,

I am trying to count the maximum number of misses that can be
occurred during the same cycle in O3. Do you have any suggestion about how
to implement it?
Thanks in advance for your help.
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] fast-forward fatal

2019-07-30 Thread Rosen Lu
Hello,

I am trying to run a fast-forward simulation, and I got an error:

'''
build/X86/gem5.opt configs/example/se.py --fast-forward=100
--cpu-type=DerivO3CPU --caches --l1d_size=32kB --l1d_assoc=2
--l1i_size=32kB --l1i_assoc=2 -c tests/test-progs/hello/bin/x86/linux/hello

fatal: Number of ISAs (0) assigned to the CPU does not equal number of
threads (1).
'''
If I removed the fast-forward flag, the simulation works normally.

Any explanation about what's happening here? Any suggestions about how to
debug this?
I will appreciate any help.

Best regards,
Rosen
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] MemTraceProbe cannot be imported successfully

2019-07-25 Thread Rosen Lu
I will try.

On Thu, Jul 25, 2019 at 10:23 Abhishek Singh 
wrote:

> Can you try older version of libptotoc like libprotoc 2.6.1?
>
> On Thu, Jul 25, 2019 at 11:18 AM Rosen Lu  wrote:
>
>> Hi,
>>
>> I set the environment as follow:
>>
>> export PATH=$PATH:/usr/local/protobuf/bin
>> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/protobuf/lib
>> export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/protobuf/lib
>>
>> Best,
>> Rosen
>>
>> Serhat Gesoglu  于2019年7月25日周四 上午9:43写道:
>>
>>> Hello,
>>> Could you try locating the protoc bin and setting the environment PROTOC
>>> to it?
>>>
>>> Serhat
>>>
>>> --
>>> *From:* gem5-users [gem5-users-boun...@gem5.org] on behalf of Rosen Lu [
>>> wisdom@gmail.com]
>>> *Sent:* 25 July 2019 15:06
>>> *To:* gem5 users mailing list
>>> *Subject:* Re: [gem5-users] MemTraceProbe cannot be imported
>>> successfully
>>>
>>> Hello Serhat,
>>>
>>> Thank you for your reply. After I rebuilt gem5, the following error
>>> message prompted:
>>> ***
>>> scons: Reading SConscript files ...
>>> Package protobuf was not found in the pkg-config search path.
>>> Perhaps you should add the directory containing `protobuf.pc'
>>> to the PKG_CONFIG_PATH environment variable
>>> No package 'protobuf' found
>>> Warning: pkg-config could not get protobuf flags.
>>> Checking for C header file Python.h... (cached) yes
>>> Checking for C library pthread... (cached) yes
>>> Checking for C library dl... (cached) yes
>>> Checking for C library util... (cached) yes
>>> Checking for C library m... (cached) yes
>>> Checking for C library python2.7... (cached) yes
>>> Checking for accept(0,0,0) in C++ library None... (cached) yes
>>> Checking for zlibVersion() in C++ library z... (cached) yes
>>> Checking for GOOGLE_PROTOBUF_VERIFY_VERSION in C++ library protobuf...
>>> (cached) no
>>> Warning: did not find protocol buffer library and/or headers.
>>>Please install libprotobuf-dev for tracing support.
>>> Checking for clock_nanosleep(0,0,NULL,NULL) in C library None...
>>> (cached) yes
>>> Checking for timer_create(CLOCK_MONOTONIC, NULL, NULL) in C library
>>> None... (cached) no
>>> Checking for timer_create(CLOCK_MONOTONIC, NULL, NULL) in C library
>>> rt... (cached) yes
>>> Checking for C library tcmalloc... (cached) no
>>> Checking for C library tcmalloc_minimal... (cached) no
>>> You can get a 12% performance improvement by installing tcmalloc
>>> (libgoogle-perftools-dev package on Ubuntu or RedHat).
>>> Checking for backtrace_symbols_fd((void*)0, 0, 0) in C library None...
>>> (cached) no
>>> Checking for backtrace_symbols_fd((void*)0, 0, 0) in C library
>>> execinfo... (cached) no
>>> No suitable back trace implementation found.
>>> Checking for C header file fenv.h... (cached) yes
>>> Checking for C header file png.h... (cached) no
>>> Warning: Header file  not found.
>>>  This host has no libpng library.
>>>  Disabling support for PNG framebuffers.
>>> Checking for C header file linux/kvm.h... (cached) yes
>>> Checking for C header file linux/if_tun.h... (cached) yes
>>> Checking size of struct kvm_xsave ... (cached) yes
>>> Checking for member exclude_host in struct perf_event_attr...(cached) yes
>>> Checking whether __i386__ is declared... (cached) no
>>> Checking whether __x86_64__ is declared... (cached) yes
>>> Building in /home/cc/gem5-prefetch-camat/build/X86
>>> Using saved variables file
>>> /home/cc/gem5-prefetch-camat/build/variables/X86
>>> ImportError: No module named MemTraceProbe:
>>>   File "/home/cc/gem5-prefetch-camat/SConstruct", line 1249:
>>> SConscript('src/SConscript', variant_dir = variant_path, exports =
>>> 'env')
>>>   File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py",
>>> line 614:
>>> return method(*args, **kw)
>>>   File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py",
>>> line 551:
>>> return _SConscript(self.fs, *files, **subst_kw)
>>>   File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py",
>>> line 260:
>>> exec _file_ in call_stack[-1].globals
>>>   File "/home/cc/gem5-prefetch-camat/build/X86/SConscript", li

Re: [gem5-users] MemTraceProbe cannot be imported successfully

2019-07-25 Thread Rosen Lu
Hi,

I set the environment as follow:

export PATH=$PATH:/usr/local/protobuf/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/protobuf/lib
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/protobuf/lib

Best,
Rosen

Serhat Gesoglu  于2019年7月25日周四 上午9:43写道:

> Hello,
> Could you try locating the protoc bin and setting the environment PROTOC
> to it?
>
> Serhat
>
> --
> *From:* gem5-users [gem5-users-boun...@gem5.org] on behalf of Rosen Lu [
> wisdom@gmail.com]
> *Sent:* 25 July 2019 15:06
> *To:* gem5 users mailing list
> *Subject:* Re: [gem5-users] MemTraceProbe cannot be imported successfully
>
> Hello Serhat,
>
> Thank you for your reply. After I rebuilt gem5, the following error
> message prompted:
> ***
> scons: Reading SConscript files ...
> Package protobuf was not found in the pkg-config search path.
> Perhaps you should add the directory containing `protobuf.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'protobuf' found
> Warning: pkg-config could not get protobuf flags.
> Checking for C header file Python.h... (cached) yes
> Checking for C library pthread... (cached) yes
> Checking for C library dl... (cached) yes
> Checking for C library util... (cached) yes
> Checking for C library m... (cached) yes
> Checking for C library python2.7... (cached) yes
> Checking for accept(0,0,0) in C++ library None... (cached) yes
> Checking for zlibVersion() in C++ library z... (cached) yes
> Checking for GOOGLE_PROTOBUF_VERIFY_VERSION in C++ library protobuf...
> (cached) no
> Warning: did not find protocol buffer library and/or headers.
>Please install libprotobuf-dev for tracing support.
> Checking for clock_nanosleep(0,0,NULL,NULL) in C library None... (cached)
> yes
> Checking for timer_create(CLOCK_MONOTONIC, NULL, NULL) in C library
> None... (cached) no
> Checking for timer_create(CLOCK_MONOTONIC, NULL, NULL) in C library rt...
> (cached) yes
> Checking for C library tcmalloc... (cached) no
> Checking for C library tcmalloc_minimal... (cached) no
> You can get a 12% performance improvement by installing tcmalloc
> (libgoogle-perftools-dev package on Ubuntu or RedHat).
> Checking for backtrace_symbols_fd((void*)0, 0, 0) in C library None...
> (cached) no
> Checking for backtrace_symbols_fd((void*)0, 0, 0) in C library execinfo...
> (cached) no
> No suitable back trace implementation found.
> Checking for C header file fenv.h... (cached) yes
> Checking for C header file png.h... (cached) no
> Warning: Header file  not found.
>  This host has no libpng library.
>  Disabling support for PNG framebuffers.
> Checking for C header file linux/kvm.h... (cached) yes
> Checking for C header file linux/if_tun.h... (cached) yes
> Checking size of struct kvm_xsave ... (cached) yes
> Checking for member exclude_host in struct perf_event_attr...(cached) yes
> Checking whether __i386__ is declared... (cached) no
> Checking whether __x86_64__ is declared... (cached) yes
> Building in /home/cc/gem5-prefetch-camat/build/X86
> Using saved variables file /home/cc/gem5-prefetch-camat/build/variables/X86
> ImportError: No module named MemTraceProbe:
>   File "/home/cc/gem5-prefetch-camat/SConstruct", line 1249:
> SConscript('src/SConscript', variant_dir = variant_path, exports =
> 'env')
>   File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line
> 614:
> return method(*args, **kw)
>   File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line
> 551:
> return _SConscript(self.fs, *files, **subst_kw)
>   File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line
> 260:
> exec _file_ in call_stack[-1].globals
>   File "/home/cc/gem5-prefetch-camat/build/X86/SConscript", line 532:
> exec('from m5.objects import %s' % modname)
>   File "", line 1:
> None
>   File "/home/cc/gem5-prefetch-camat/build/X86/SConscript", line 512:
> exec file(source.abspath, 'r') in mod.__dict__
>   File "/home/cc/gem5-prefetch-camat/src/cpu/simple/AtomicSimpleCPU.py",
> line 42:
> from BaseSimpleCPU import BaseSimpleCPU
>   File "/home/cc/gem5-prefetch-camat/build/X86/SConscript", line 512:
> exec file(source.abspath, 'r') in mod.__dict__
>   File "/home/cc/gem5-prefetch-camat/src/cpu/simple/BaseSimpleCPU.py",
> line 31:
> from BaseCPU import BaseCPU
>   File "/home/cc/gem5-prefetch-camat/build/X86/SConscript", line 512:
> exec file(source.abspath, 'r') in mod.__dict__
>   File "/home/cc/gem5-prefetch-camat/src/cpu/BaseCPU.py", line 60:
> from m5.objects.MemTraceProbe import *
> ***
>

Re: [gem5-users] MemTraceProbe cannot be imported successfully

2019-07-25 Thread Rosen Lu
Hello Serhat,

Thank you for your reply. After I rebuilt gem5, the following error message
prompted:
***
scons: Reading SConscript files ...
Package protobuf was not found in the pkg-config search path.
Perhaps you should add the directory containing `protobuf.pc'
to the PKG_CONFIG_PATH environment variable
No package 'protobuf' found
Warning: pkg-config could not get protobuf flags.
Checking for C header file Python.h... (cached) yes
Checking for C library pthread... (cached) yes
Checking for C library dl... (cached) yes
Checking for C library util... (cached) yes
Checking for C library m... (cached) yes
Checking for C library python2.7... (cached) yes
Checking for accept(0,0,0) in C++ library None... (cached) yes
Checking for zlibVersion() in C++ library z... (cached) yes
Checking for GOOGLE_PROTOBUF_VERIFY_VERSION in C++ library protobuf...
(cached) no
Warning: did not find protocol buffer library and/or headers.
   Please install libprotobuf-dev for tracing support.
Checking for clock_nanosleep(0,0,NULL,NULL) in C library None... (cached)
yes
Checking for timer_create(CLOCK_MONOTONIC, NULL, NULL) in C library None...
(cached) no
Checking for timer_create(CLOCK_MONOTONIC, NULL, NULL) in C library rt...
(cached) yes
Checking for C library tcmalloc... (cached) no
Checking for C library tcmalloc_minimal... (cached) no
You can get a 12% performance improvement by installing tcmalloc
(libgoogle-perftools-dev package on Ubuntu or RedHat).
Checking for backtrace_symbols_fd((void*)0, 0, 0) in C library None...
(cached) no
Checking for backtrace_symbols_fd((void*)0, 0, 0) in C library execinfo...
(cached) no
No suitable back trace implementation found.
Checking for C header file fenv.h... (cached) yes
Checking for C header file png.h... (cached) no
Warning: Header file  not found.
 This host has no libpng library.
 Disabling support for PNG framebuffers.
Checking for C header file linux/kvm.h... (cached) yes
Checking for C header file linux/if_tun.h... (cached) yes
Checking size of struct kvm_xsave ... (cached) yes
Checking for member exclude_host in struct perf_event_attr...(cached) yes
Checking whether __i386__ is declared... (cached) no
Checking whether __x86_64__ is declared... (cached) yes
Building in /home/cc/gem5-prefetch-camat/build/X86
Using saved variables file /home/cc/gem5-prefetch-camat/build/variables/X86
ImportError: No module named MemTraceProbe:
  File "/home/cc/gem5-prefetch-camat/SConstruct", line 1249:
SConscript('src/SConscript', variant_dir = variant_path, exports =
'env')
  File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line
614:
return method(*args, **kw)
  File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line
551:
return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line
260:
exec _file_ in call_stack[-1].globals
  File "/home/cc/gem5-prefetch-camat/build/X86/SConscript", line 532:
exec('from m5.objects import %s' % modname)
  File "", line 1:
None
  File "/home/cc/gem5-prefetch-camat/build/X86/SConscript", line 512:
exec file(source.abspath, 'r') in mod.__dict__
  File "/home/cc/gem5-prefetch-camat/src/cpu/simple/AtomicSimpleCPU.py",
line 42:
from BaseSimpleCPU import BaseSimpleCPU
  File "/home/cc/gem5-prefetch-camat/build/X86/SConscript", line 512:
exec file(source.abspath, 'r') in mod.__dict__
  File "/home/cc/gem5-prefetch-camat/src/cpu/simple/BaseSimpleCPU.py", line
31:
from BaseCPU import BaseCPU
  File "/home/cc/gem5-prefetch-camat/build/X86/SConscript", line 512:
exec file(source.abspath, 'r') in mod.__dict__
  File "/home/cc/gem5-prefetch-camat/src/cpu/BaseCPU.py", line 60:
from m5.objects.MemTraceProbe import *
***

I think this error was because of the absence of protobuf.  However, I have
installed protobuf,
***
protoc --version
libprotoc 3.9.0
***
So is this a version mismatch problem?

Best,
Rosen


Serhat Gesoglu  于2019年7月25日周四 上午6:33写道:

> Hello,
> If you are using the recent versions of gem5, you should use:
> ***
> from m5.objects.CommMonitor import *
> from m5.objects.MemTraceProbe import *
> ***
>
> instead of "from  import *"
>
> I just did a clean install / build and did not have any errors.
>
> Kind regards
> Serhat
>
> 
> From: gem5-users [gem5-users-boun...@gem5.org] on behalf of Rosen Lu [
> wisdom@gmail.com]
> Sent: 25 July 2019 05:48
> To: gem5-users@gem5.org
> Subject: [gem5-users] MemTraceProbe cannot be imported successfully
>
> Hello,
>
> I am trying to have a monitor between the CPU and L1 Cache, so for
> src/cpu/BaseCPU.py, I edited the function "addPrivateSplitL1Caches":
> ...
> #self.dcache_port = dc.cpu_side