Skip to content

Commit

Permalink
occamygen: Access clustergen in non-hardcoded way (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsc96 committed Sep 25, 2023
1 parent b617808 commit b9db2f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util/occamygen/occamy.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
from pathlib import Path

# If `SNITCH_ROOT` is set, use it. otherwise, assume workspace location
snitch_root = Path(os.environ['SNITCH_ROOT'] if 'SNITCH_ROOT' in os.environ else "../../deps/snitch_cluster").resolve()
snitch_root = Path(os.environ['SNITCH_ROOT'] if 'SNITCH_ROOT' in os.environ else
Path(__file__).parent / "../../deps/snitch_cluster").resolve()
sys.path.append(f'{snitch_root}/util/clustergen')
from cluster import Generator, PMA, PMACfg, SnitchCluster, clog2 # noqa: E402

Expand Down

0 comments on commit b9db2f9

Please sign in to comment.