Repository navigation
gem5 dummy simulator - #24
Closed
Geonwoo1998 wants to merge 3 commits into
Closed
Geonwoo1998 wants to merge 3 commits into
Geonwoo1998 wants to merge 3 commits into
Conversation
YWHyuk
requested changes
Jan 31, 2024
| print(f"Gem5 Error! {gem5_cmd}") | ||
| print(e) | ||
| sys.exit(1) | ||
|
|
Collaborator
There was a problem hiding this comment.
Return parsed data to caller
| GEM5_SCRIPT_PATH = "gem5_script/script.py" | ||
| # this will be removed | ||
| PREMADE_BINARY_PATH = "/test/test.o" | ||
|
|
Collaborator
There was a problem hiding this comment.
Use environment instead of hardcoded path
Also, use TORCHSIM_ prefix
| import subprocess | ||
|
|
||
| import sys | ||
| import subprocess |
| 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") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
link gem5 to dummy_simulator