Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions iron/common/compilation/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,12 @@ def __init__(
self, build_dir, peano_dir, mlir_aie_dir, use_chess=False, *args, **kwargs
):
self.build_dir = build_dir
self.aiecc_path = Path(mlir_aie_dir) / "bin" / "aiecc"
# AIECC_PATH lets a build point at a locally-built aiecc (e.g. a compiler under
# development) without replacing the installed one. Default = the installed aiecc.
_aiecc_override = os.environ.get("AIECC_PATH")
self.aiecc_path = (
Path(_aiecc_override) if _aiecc_override else Path(mlir_aie_dir) / "bin" / "aiecc"
)
self.peano_dir = peano_dir
self.use_chess = use_chess
super().__init__(*args, **kwargs)
Expand All @@ -508,7 +513,7 @@ def compile(self, graph):
compile_cmd = [
str(self.aiecc_path),
"-v",
"-j1",
f"-j{os.environ.get('AIECC_JOBS', '1')}",
"--no-compile-host",
]
if self.use_chess:
Expand Down Expand Up @@ -562,7 +567,7 @@ def compile(self, graph):
compile_cmd = [
str(self.aiecc_path),
"-v",
"-j1",
f"-j{os.environ.get('AIECC_JOBS', '1')}",
"--no-compile-host",
]
if self.use_chess:
Expand Down