nkanderson / ECE585-llc

Simulation of a last level cache (LLC) for ECE 585 final project
1 stars 0 forks source link

Fixup module path #27

Closed nkanderson closed 2 weeks ago

nkanderson commented 2 weeks ago

@d-engler @reecewayt could you confirm this fixes the issues? Seemed to on my machine, but it would be good to get confirmation.

Also - closes #26

d-engler commented 2 weeks ago

Nope, "No module named config".

nkanderson commented 2 weeks ago

@d-engler are you running it with the -m option? Like python -m utils.trace_parser? If you're running from the Docker container, you don't need to change directories, but if you're running locally, you'd want to run from within src.

nkanderson commented 2 weeks ago

For example, this is the output I get in Docker:

llcsim@834d4c6e442d:~$ python -m utils.trace_parser --debug
[INFO] - Using default file: /home/llcsim/data/trace.txt
[DEBUG] -Line read...
Operation: 2L1_INSTRUCTION_READ  Address: 0x00408ed4
[DEBUG] -Line read...
Operation: 1L1_DATA_WRITE        Address: 0x10019d94
[DEBUG] -Line read...
Operation: 2L1_INSTRUCTION_READ  Address: 0x00408ed8
[DEBUG] -Line read...
Operation: 1L1_DATA_WRITE        Address: 0x10019d88
[DEBUG] -Line read...
Operation: 2L1_INSTRUCTION_READ  Address: 0x0408edc0
[INFO] : Trace Read Complete
d-engler commented 2 weeks ago

that was my issue...