Skip to content

gem5 dummy simulator - #24

Closed
Geonwoo1998 wants to merge 3 commits into
developfrom
gem5_dummy
Closed

Geonwoo1998 wants to merge 3 commits into
developfrom
gem5_dummy

Conversation

@Geonwoo1998

Copy link
Copy Markdown
Contributor

link gem5 to dummy_simulator

@YWHyuk YWHyuk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread extension_codecache.py
print(f"Gem5 Error! {gem5_cmd}")
print(e)
sys.exit(1)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Return parsed data to caller

Comment thread extension_codecache.py Outdated
GEM5_SCRIPT_PATH = "gem5_script/script.py"
# this will be removed
PREMADE_BINARY_PATH = "/test/test.o"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use environment instead of hardcoded path
Also, use TORCHSIM_ prefix

Comment thread extension_codecache.py Outdated
import subprocess

import sys
import subprocess

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicated code

Comment thread extension_codecache.py Outdated
TORCHSIM_CUSTOM_PASS_PATH = os.environ.get('TORCHSIM_CUSTOM_PASS_PATH', default="./GemminiLowerPass/build")

def compile_and_simulate(asm_file_path, output_binary_path, compiler_path):
print(f"Compling... {compiler_path} {asm_file_path} -o {output_binary_path}...\n")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove prints

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants