gem5-users@gem5.org

The gem5 Users mailing list

View all threads

Running benchmarks and gem5art

BN
Beser, Nicholas D.
Thu, Jun 29, 2023 2:21 PM

I have been preparing a lecture for my computer architecture class on running benchmarks using gem5. I noticed when I searched the web for examples, gem5art came up. I had been using the bootcamp 2022 tutorial as a guideline, so I am not sure where gem5art fits in. (https://www.gem5.org/documentation/gem5art/introduction). I was looking for a concise tutorial showing how to run benchmarks. The examples I had found previous featured spec2006 and spec2017 which, while interesting, can't be run due to the proprietary nature of their code.  Ideally, I would not like to run the benchmarks as FS due to the amount of time required to run.

I am open to suggestions about what type of benchmark I could use. The spec benchmarks have been published in texts, and papers, and would have made a nice impression on the class.  I enjoyed the bootcamp  youtube videos. It made a nice way of coming up to speed.

Nick

I have been preparing a lecture for my computer architecture class on running benchmarks using gem5. I noticed when I searched the web for examples, gem5art came up. I had been using the bootcamp 2022 tutorial as a guideline, so I am not sure where gem5art fits in. (https://www.gem5.org/documentation/gem5art/introduction). I was looking for a concise tutorial showing how to run benchmarks. The examples I had found previous featured spec2006 and spec2017 which, while interesting, can't be run due to the proprietary nature of their code. Ideally, I would not like to run the benchmarks as FS due to the amount of time required to run. I am open to suggestions about what type of benchmark I could use. The spec benchmarks have been published in texts, and papers, and would have made a nice impression on the class. I enjoyed the bootcamp youtube videos. It made a nice way of coming up to speed. Nick
NF
Nick Felker
Thu, Jun 29, 2023 3:07 PM

I managed to run STREAM and Whetstone/Dhrystone

https://fleker.medium.com/running-and-evaluating-stream-benchmark-for-nvm-in-gem5-3dd07ae9ccaa

https://fleker.medium.com/building-running-whetstone-dhrystone-in-gem5-90d465a10bb4

As you had mentioned, some of them are proprietary and that made it hard to
obtain and run.

On Thu, Jun 29, 2023, 10:23 AM Beser, Nicholas D. via gem5-users <
gem5-users@gem5.org> wrote:

I have been preparing a lecture for my computer architecture class on
running benchmarks using gem5. I noticed when I searched the web for
examples, gem5art came up. I had been using the bootcamp 2022 tutorial as a
guideline, so I am not sure where gem5art fits in. (
https://www.gem5.org/documentation/gem5art/introduction). I was looking
for a concise tutorial showing how to run benchmarks. The examples I had
found previous featured spec2006 and spec2017 which, while interesting,
can’t be run due to the proprietary nature of their code.  Ideally, I would
not like to run the benchmarks as FS due to the amount of time required to
run.

I am open to suggestions about what type of benchmark I could use. The
spec benchmarks have been published in texts, and papers, and would have
made a nice impression on the class.  I enjoyed the bootcamp  youtube
videos. It made a nice way of coming up to speed.

Nick


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

I managed to run STREAM and Whetstone/Dhrystone https://fleker.medium.com/running-and-evaluating-stream-benchmark-for-nvm-in-gem5-3dd07ae9ccaa https://fleker.medium.com/building-running-whetstone-dhrystone-in-gem5-90d465a10bb4 As you had mentioned, some of them are proprietary and that made it hard to obtain and run. On Thu, Jun 29, 2023, 10:23 AM Beser, Nicholas D. via gem5-users < gem5-users@gem5.org> wrote: > I have been preparing a lecture for my computer architecture class on > running benchmarks using gem5. I noticed when I searched the web for > examples, gem5art came up. I had been using the bootcamp 2022 tutorial as a > guideline, so I am not sure where gem5art fits in. ( > https://www.gem5.org/documentation/gem5art/introduction). I was looking > for a concise tutorial showing how to run benchmarks. The examples I had > found previous featured spec2006 and spec2017 which, while interesting, > can’t be run due to the proprietary nature of their code. Ideally, I would > not like to run the benchmarks as FS due to the amount of time required to > run. > > > > I am open to suggestions about what type of benchmark I could use. The > spec benchmarks have been published in texts, and papers, and would have > made a nice impression on the class. I enjoyed the bootcamp youtube > videos. It made a nice way of coming up to speed. > > > > Nick > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-leave@gem5.org >
BN
Beser, Nicholas D.
Thu, Jun 29, 2023 4:10 PM

Nick,

Thank you for the links, I will try them and let you know. It looks like exactly what I was looking for.

Nick

From: Nick Felker handnf@gmail.com
Sent: Thursday, June 29, 2023 11:07 AM
To: The gem5 Users mailing list gem5-users@gem5.org
Cc: Beser, Nicholas D. Nick.Beser@jhuapl.edu
Subject: [EXT] Re: [gem5-users] Running benchmarks and gem5art

APL external email warning: Verify sender handnf@gmail.commailto:handnf@gmail.com before clicking links or attachments

I managed to run STREAM and Whetstone/Dhrystone

https://fleker.medium.com/running-and-evaluating-stream-benchmark-for-nvm-in-gem5-3dd07ae9ccaa

https://fleker.medium.com/building-running-whetstone-dhrystone-in-gem5-90d465a10bb4

As you had mentioned, some of them are proprietary and that made it hard to obtain and run.

On Thu, Jun 29, 2023, 10:23 AM Beser, Nicholas D. via gem5-users <gem5-users@gem5.orgmailto:gem5-users@gem5.org> wrote:
I have been preparing a lecture for my computer architecture class on running benchmarks using gem5. I noticed when I searched the web for examples, gem5art came up. I had been using the bootcamp 2022 tutorial as a guideline, so I am not sure where gem5art fits in. (https://www.gem5.org/documentation/gem5art/introduction). I was looking for a concise tutorial showing how to run benchmarks. The examples I had found previous featured spec2006 and spec2017 which, while interesting, can’t be run due to the proprietary nature of their code.  Ideally, I would not like to run the benchmarks as FS due to the amount of time required to run.

I am open to suggestions about what type of benchmark I could use. The spec benchmarks have been published in texts, and papers, and would have made a nice impression on the class.  I enjoyed the bootcamp  youtube videos. It made a nice way of coming up to speed.

Nick


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

Nick, Thank you for the links, I will try them and let you know. It looks like exactly what I was looking for. Nick From: Nick Felker <handnf@gmail.com> Sent: Thursday, June 29, 2023 11:07 AM To: The gem5 Users mailing list <gem5-users@gem5.org> Cc: Beser, Nicholas D. <Nick.Beser@jhuapl.edu> Subject: [EXT] Re: [gem5-users] Running benchmarks and gem5art APL external email warning: Verify sender handnf@gmail.com<mailto:handnf@gmail.com> before clicking links or attachments I managed to run STREAM and Whetstone/Dhrystone https://fleker.medium.com/running-and-evaluating-stream-benchmark-for-nvm-in-gem5-3dd07ae9ccaa https://fleker.medium.com/building-running-whetstone-dhrystone-in-gem5-90d465a10bb4 As you had mentioned, some of them are proprietary and that made it hard to obtain and run. On Thu, Jun 29, 2023, 10:23 AM Beser, Nicholas D. via gem5-users <gem5-users@gem5.org<mailto:gem5-users@gem5.org>> wrote: I have been preparing a lecture for my computer architecture class on running benchmarks using gem5. I noticed when I searched the web for examples, gem5art came up. I had been using the bootcamp 2022 tutorial as a guideline, so I am not sure where gem5art fits in. (https://www.gem5.org/documentation/gem5art/introduction). I was looking for a concise tutorial showing how to run benchmarks. The examples I had found previous featured spec2006 and spec2017 which, while interesting, can’t be run due to the proprietary nature of their code. Ideally, I would not like to run the benchmarks as FS due to the amount of time required to run. I am open to suggestions about what type of benchmark I could use. The spec benchmarks have been published in texts, and papers, and would have made a nice impression on the class. I enjoyed the bootcamp youtube videos. It made a nice way of coming up to speed. Nick _______________________________________________ gem5-users mailing list -- gem5-users@gem5.org<mailto:gem5-users@gem5.org> To unsubscribe send an email to gem5-users-leave@gem5.org<mailto:gem5-users-leave@gem5.org>
BN
Beser, Nicholas D.
Sun, Jul 2, 2023 8:58 PM

I have been adding benchmark examples to my lecture and I ran into an interesting problem. The python code was based on the simple.py from the learning_gem5 directory. I have been using the gem-x86 code created by dockerscript as part of the bootcamp 2022 tutorial. It produces the following error when I try to run:

I have no name!@ab17918db0fa:/home/besernd1/gem5-bootcamp-env/gem5$ gem5-x86 configs/learning_gem5/part1/simple.py
gem5 Simulator System.  https://www.gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 version 22.1.0.0
gem5 compiled Jun 18 2023 14:06:41
gem5 started Jul  2 2023 20:53:06
gem5 executing on ab17918db0fa, pid 21
command line: gem5-x86 configs/learning_gem5/part1/simple.py

KeyError: ('TARGET_ISA',)

At:
configs/learning_gem5/part1/simple.py(70): <module>
build/X86/python/m5/main.py(597): main

When I substitute the compiled gem5.opt (not running from /usr/local/bin) It seems to work fine:

I have no name!@ab17918db0fa:/home/besernd1/gem5-bootcamp-env/gem5$ build/X86/gem5.opt configs/learning_gem5/part1/simple.py
gem5 Simulator System.  https://www.gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 version 22.0.0.0
gem5 compiled Jun 19 2023 17:46:09
gem5 started Jul  2 2023 20:55:40
gem5 executing on ab17918db0fa, pid 22
command line: build/X86/gem5.opt configs/learning_gem5/part1/simple.py

Global frequency set at 1000000000000 ticks per second
build/X86/mem/dram_interface.cc:690: warn: DRAM device capacity (8192 Mbytes) does not match the address range assigned (512 Mbytes)
0: system.remote_gdb: listening for remote gdb on port 7000
Beginning simulation!
build/X86/sim/simulate.cc:194: info: Entering event queue @ 0.  Starting simulation...
Hello world!
Exiting @ tick 508634000 because exiting with last active thread context
I have no name!@ab17918db0fa:/home/besernd1/gem5-bootcamp-env/gem5$

Any ideas what is going on here?

Nick

From: Nick Felker handnf@gmail.com
Sent: Thursday, June 29, 2023 11:07 AM
To: The gem5 Users mailing list gem5-users@gem5.org
Cc: Beser, Nicholas D. Nick.Beser@jhuapl.edu
Subject: [EXT] Re: [gem5-users] Running benchmarks and gem5art

APL external email warning: Verify sender handnf@gmail.commailto:handnf@gmail.com before clicking links or attachments

I managed to run STREAM and Whetstone/Dhrystone

https://fleker.medium.com/running-and-evaluating-stream-benchmark-for-nvm-in-gem5-3dd07ae9ccaa

https://fleker.medium.com/building-running-whetstone-dhrystone-in-gem5-90d465a10bb4

As you had mentioned, some of them are proprietary and that made it hard to obtain and run.

On Thu, Jun 29, 2023, 10:23 AM Beser, Nicholas D. via gem5-users <gem5-users@gem5.orgmailto:gem5-users@gem5.org> wrote:
I have been preparing a lecture for my computer architecture class on running benchmarks using gem5. I noticed when I searched the web for examples, gem5art came up. I had been using the bootcamp 2022 tutorial as a guideline, so I am not sure where gem5art fits in. (https://www.gem5.org/documentation/gem5art/introduction). I was looking for a concise tutorial showing how to run benchmarks. The examples I had found previous featured spec2006 and spec2017 which, while interesting, can’t be run due to the proprietary nature of their code.  Ideally, I would not like to run the benchmarks as FS due to the amount of time required to run.

I am open to suggestions about what type of benchmark I could use. The spec benchmarks have been published in texts, and papers, and would have made a nice impression on the class.  I enjoyed the bootcamp  youtube videos. It made a nice way of coming up to speed.

Nick


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

I have been adding benchmark examples to my lecture and I ran into an interesting problem. The python code was based on the simple.py from the learning_gem5 directory. I have been using the gem-x86 code created by dockerscript as part of the bootcamp 2022 tutorial. It produces the following error when I try to run: I have no name!@ab17918db0fa:/home/besernd1/gem5-bootcamp-env/gem5$ gem5-x86 configs/learning_gem5/part1/simple.py gem5 Simulator System. https://www.gem5.org gem5 is copyrighted software; use the --copyright option for details. gem5 version 22.1.0.0 gem5 compiled Jun 18 2023 14:06:41 gem5 started Jul 2 2023 20:53:06 gem5 executing on ab17918db0fa, pid 21 command line: gem5-x86 configs/learning_gem5/part1/simple.py KeyError: ('TARGET_ISA',) At: configs/learning_gem5/part1/simple.py(70): <module> build/X86/python/m5/main.py(597): main When I substitute the compiled gem5.opt (not running from /usr/local/bin) It seems to work fine: I have no name!@ab17918db0fa:/home/besernd1/gem5-bootcamp-env/gem5$ build/X86/gem5.opt configs/learning_gem5/part1/simple.py gem5 Simulator System. https://www.gem5.org gem5 is copyrighted software; use the --copyright option for details. gem5 version 22.0.0.0 gem5 compiled Jun 19 2023 17:46:09 gem5 started Jul 2 2023 20:55:40 gem5 executing on ab17918db0fa, pid 22 command line: build/X86/gem5.opt configs/learning_gem5/part1/simple.py Global frequency set at 1000000000000 ticks per second build/X86/mem/dram_interface.cc:690: warn: DRAM device capacity (8192 Mbytes) does not match the address range assigned (512 Mbytes) 0: system.remote_gdb: listening for remote gdb on port 7000 Beginning simulation! build/X86/sim/simulate.cc:194: info: Entering event queue @ 0. Starting simulation... Hello world! Exiting @ tick 508634000 because exiting with last active thread context I have no name!@ab17918db0fa:/home/besernd1/gem5-bootcamp-env/gem5$ Any ideas what is going on here? Nick From: Nick Felker <handnf@gmail.com> Sent: Thursday, June 29, 2023 11:07 AM To: The gem5 Users mailing list <gem5-users@gem5.org> Cc: Beser, Nicholas D. <Nick.Beser@jhuapl.edu> Subject: [EXT] Re: [gem5-users] Running benchmarks and gem5art APL external email warning: Verify sender handnf@gmail.com<mailto:handnf@gmail.com> before clicking links or attachments I managed to run STREAM and Whetstone/Dhrystone https://fleker.medium.com/running-and-evaluating-stream-benchmark-for-nvm-in-gem5-3dd07ae9ccaa https://fleker.medium.com/building-running-whetstone-dhrystone-in-gem5-90d465a10bb4 As you had mentioned, some of them are proprietary and that made it hard to obtain and run. On Thu, Jun 29, 2023, 10:23 AM Beser, Nicholas D. via gem5-users <gem5-users@gem5.org<mailto:gem5-users@gem5.org>> wrote: I have been preparing a lecture for my computer architecture class on running benchmarks using gem5. I noticed when I searched the web for examples, gem5art came up. I had been using the bootcamp 2022 tutorial as a guideline, so I am not sure where gem5art fits in. (https://www.gem5.org/documentation/gem5art/introduction). I was looking for a concise tutorial showing how to run benchmarks. The examples I had found previous featured spec2006 and spec2017 which, while interesting, can’t be run due to the proprietary nature of their code. Ideally, I would not like to run the benchmarks as FS due to the amount of time required to run. I am open to suggestions about what type of benchmark I could use. The spec benchmarks have been published in texts, and papers, and would have made a nice impression on the class. I enjoyed the bootcamp youtube videos. It made a nice way of coming up to speed. Nick _______________________________________________ gem5-users mailing list -- gem5-users@gem5.org<mailto:gem5-users@gem5.org> To unsubscribe send an email to gem5-users-leave@gem5.org<mailto:gem5-users-leave@gem5.org>
G
G
Mon, Jul 3, 2023 2:33 AM

Hello,

Anyone went well with GEM5 and SystemC integration?

I triied to build libgem5_debug.so so I can integrate GEM5 in a standalone systemc environment with below commandline:

python3 which scons --with-cxx-config --without-python --without-tcmalloc USE_SYSTEMC=1 build/RISCV/libgem5_$(BUILD_TYPE).so -j 32

But I got below issue with "--with-cxx-config" option.

build/RISCV/cxx_config/Gem5ToTlmBridge32.cc: In member function ‘virtual gem5::SimObject* gem5::Gem5ToTlmBridge32CxxConfigParams::simObjectCreate()’:
build/RISCV/cxx_config/Gem5ToTlmBridge32.cc:149:24: error: cannot convert ‘sc_gem5::Gem5ToTlmBridge<32>’ to ‘gem5::SimObject’ in return
149 | return this->create();
| ~~~~~~~~~~~~^~
| |
| sc_gem5::Gem5ToTlmBridge<32>*

if I do without this option, assertion fired in below, complaining:

main.cc:280: fatal: Config problem in sim object root: No sim object type Root is available

| |
G
|
|
gingerluo@163.com
|

Hello, Anyone went well with GEM5 and SystemC integration? I triied to build libgem5_debug.so so I can integrate GEM5 in a standalone systemc environment with below commandline: python3 `which scons` --with-cxx-config --without-python --without-tcmalloc USE_SYSTEMC=1 build/RISCV/libgem5_$(BUILD_TYPE).so -j 32 But I got below issue with "--with-cxx-config" option. build/RISCV/cxx_config/Gem5ToTlmBridge32.cc: In member function ‘virtual gem5::SimObject* gem5::Gem5ToTlmBridge32CxxConfigParams::simObjectCreate()’: build/RISCV/cxx_config/Gem5ToTlmBridge32.cc:149:24: error: cannot convert ‘sc_gem5::Gem5ToTlmBridge<32>*’ to ‘gem5::SimObject*’ in return 149 | return this->create(); | ~~~~~~~~~~~~^~ | | | sc_gem5::Gem5ToTlmBridge<32>* if I do without this option, assertion fired in below, complaining: main.cc:280: fatal: Config problem in sim object root: No sim object type Root is available | | G | | gingerluo@163.com |
G
G
Fri, Jul 14, 2023 9:21 AM

Hello, Anyone hit same issue when building "GEM5 within SystemC"? Or just succeeding?

| |
G
|
|
gingerluo@163.com
|
---- Replied Message ----
| From | G via gem5-usersgem5-users@gem5.org |
| Date | 7/3/2023 10:35 |
| To | gem5-users@gem5.orggem5-users@gem5.org |
| Cc | gingerluogingerluo@163.com |
| Subject | [gem5-users] GEM5 within SystemC build issue |
Hello,

Anyone went well with GEM5 and SystemC integration?

I triied to build libgem5_debug.so so I can integrate GEM5 in a standalone systemc environment with below commandline:

python3 which scons --with-cxx-config --without-python --without-tcmalloc USE_SYSTEMC=1 build/RISCV/libgem5_$(BUILD_TYPE).so -j 32

But I got below issue with "--with-cxx-config" option.

build/RISCV/cxx_config/Gem5ToTlmBridge32.cc: In member function ‘virtual gem5::SimObject* gem5::Gem5ToTlmBridge32CxxConfigParams::simObjectCreate()’:
build/RISCV/cxx_config/Gem5ToTlmBridge32.cc:149:24: error: cannot convert ‘sc_gem5::Gem5ToTlmBridge<32>’ to ‘gem5::SimObject’ in return
149 | return this->create();
| ~~~~~~~~~~~~^~
| |
| sc_gem5::Gem5ToTlmBridge<32>*

if I do without this option, assertion fired in below, complaining:

main.cc:280: fatal: Config problem in sim object root: No sim object type Root is available

| |
G
|
|
gingerluo@163.com
|

Hello, Anyone hit same issue when building "GEM5 within SystemC"? Or just succeeding? | | G | | gingerluo@163.com | ---- Replied Message ---- | From | G via gem5-users<gem5-users@gem5.org> | | Date | 7/3/2023 10:35 | | To | gem5-users@gem5.org<gem5-users@gem5.org> | | Cc | gingerluo<gingerluo@163.com> | | Subject | [gem5-users] GEM5 within SystemC build issue | Hello, Anyone went well with GEM5 and SystemC integration? I triied to build libgem5_debug.so so I can integrate GEM5 in a standalone systemc environment with below commandline: python3 `which scons` --with-cxx-config --without-python --without-tcmalloc USE_SYSTEMC=1 build/RISCV/libgem5_$(BUILD_TYPE).so -j 32 But I got below issue with "--with-cxx-config" option. build/RISCV/cxx_config/Gem5ToTlmBridge32.cc: In member function ‘virtual gem5::SimObject* gem5::Gem5ToTlmBridge32CxxConfigParams::simObjectCreate()’: build/RISCV/cxx_config/Gem5ToTlmBridge32.cc:149:24: error: cannot convert ‘sc_gem5::Gem5ToTlmBridge<32>*’ to ‘gem5::SimObject*’ in return 149 | return this->create(); | ~~~~~~~~~~~~^~ | | | sc_gem5::Gem5ToTlmBridge<32>* if I do without this option, assertion fired in below, complaining: main.cc:280: fatal: Config problem in sim object root: No sim object type Root is available | | G | | gingerluo@163.com |
G
G
Wed, Jul 19, 2023 6:43 AM

Hello Yu-hsin,

Just saw you are the main edtor of tlm bridge to sysc, maybe you are the right person? :)

In the bridge, this->create() will return a Gem5ToTlmBridge type which is incompatible with SimObject as below declared, any comments? Thanks a lot!

SimObject *
Gem5ToTlmBridge32CxxConfigParams::simObjectCreate()
{
return this->create();
}

| |
G
|
|

|
---- Replied Message ----
| From | G via gem5-usersgem5-users@gem5.org |
| Date | 7/14/2023 17:24 |
| To | gem5-users@gem5.orggem5-users@gem5.org |
| Cc | Ggingerluo@163.com |
| Subject | [gem5-users] Re: GEM5 within SystemC build issue |
Hello, Anyone hit same issue when building "GEM5 within SystemC"? Or just succeeding?

| |
G
|
|
gingerluo@163.com
|
---- Replied Message ----
| From | G via gem5-usersgem5-users@gem5.org |
| Date | 7/3/2023 10:35 |
| To | gem5-users@gem5.orggem5-users@gem5.org |
| Cc | gingerluogingerluo@163.com |
| Subject | [gem5-users] GEM5 within SystemC build issue |
Hello,

Anyone went well with GEM5 and SystemC integration?

I triied to build libgem5_debug.so so I can integrate GEM5 in a standalone systemc environment with below commandline:

python3 which scons --with-cxx-config --without-python --without-tcmalloc USE_SYSTEMC=1 build/RISCV/libgem5_$(BUILD_TYPE).so -j 32

But I got below issue with "--with-cxx-config" option.

build/RISCV/cxx_config/Gem5ToTlmBridge32.cc: In member function ‘virtual gem5::SimObject* gem5::Gem5ToTlmBridge32CxxConfigParams::simObjectCreate()’:
build/RISCV/cxx_config/Gem5ToTlmBridge32.cc:149:24: error: cannot convert ‘sc_gem5::Gem5ToTlmBridge<32>’ to ‘gem5::SimObject’ in return
149 | return this->create();
| ~~~~~~~~~~~~^~
| |
| sc_gem5::Gem5ToTlmBridge<32>*

if I do without this option, assertion fired in below, complaining:

main.cc:280: fatal: Config problem in sim object root: No sim object type Root is available

| |
G
|
|
gingerluo@163.com
|

Hello Yu-hsin, Just saw you are the main edtor of tlm bridge to sysc, maybe you are the right person? :) In the bridge, this->create() will return a Gem5ToTlmBridge type which is incompatible with SimObject as below declared, any comments? Thanks a lot! SimObject * Gem5ToTlmBridge32CxxConfigParams::simObjectCreate() { return this->create(); } | | G | | | ---- Replied Message ---- | From | G via gem5-users<gem5-users@gem5.org> | | Date | 7/14/2023 17:24 | | To | gem5-users@gem5.org<gem5-users@gem5.org> | | Cc | G<gingerluo@163.com> | | Subject | [gem5-users] Re: GEM5 within SystemC build issue | Hello, Anyone hit same issue when building "GEM5 within SystemC"? Or just succeeding? | | G | | gingerluo@163.com | ---- Replied Message ---- | From | G via gem5-users<gem5-users@gem5.org> | | Date | 7/3/2023 10:35 | | To | gem5-users@gem5.org<gem5-users@gem5.org> | | Cc | gingerluo<gingerluo@163.com> | | Subject | [gem5-users] GEM5 within SystemC build issue | Hello, Anyone went well with GEM5 and SystemC integration? I triied to build libgem5_debug.so so I can integrate GEM5 in a standalone systemc environment with below commandline: python3 `which scons` --with-cxx-config --without-python --without-tcmalloc USE_SYSTEMC=1 build/RISCV/libgem5_$(BUILD_TYPE).so -j 32 But I got below issue with "--with-cxx-config" option. build/RISCV/cxx_config/Gem5ToTlmBridge32.cc: In member function ‘virtual gem5::SimObject* gem5::Gem5ToTlmBridge32CxxConfigParams::simObjectCreate()’: build/RISCV/cxx_config/Gem5ToTlmBridge32.cc:149:24: error: cannot convert ‘sc_gem5::Gem5ToTlmBridge<32>*’ to ‘gem5::SimObject*’ in return 149 | return this->create(); | ~~~~~~~~~~~~^~ | | | sc_gem5::Gem5ToTlmBridge<32>* if I do without this option, assertion fired in below, complaining: main.cc:280: fatal: Config problem in sim object root: No sim object type Root is available | | G | | gingerluo@163.com |