You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def circt_opt_version() -> str:
circt_home = _circt_home()
circt_opt_binary = _circt_opt_binary(circt_home)
ostream = io.TextIOWrapper(io.BytesIO())
returncode = _run_subprocess(
[circt_opt_binary, "--version"],
stdin=io.BytesIO(),
stdout=ostream.buffer,
)
ostream.seek(0)
version = ostream.read()
match = re.search(_CIRCT_VERSION_RE_PATTERN, version, re.MULTILINE)
if match is None:
> raise BadCirctOptVersionStringError(version)
E magma.backend.mlir.mlir_to_verilog.BadCirctOptVersionStringError: LLVM (http://llvm.org/):
E LLVM version 17.0.0git
E DEBUG build with assertions.
E CIRCT unknown git version
../../magma/magma/backend/mlir/mlir_to_verilog.py:123: BadCirctOptVersionStringError
Trying to disable the check as follows doesn't work.
I would upgrade magma, either through a global upgrade: python -m pip install -e --upgrade or magma-specific upgrade: python -m pip install magma-lang --upgrade. If you do python -m pip freeze | grep magma you should ideally see version >= 2.3.0.
For future reference, passing options to magma compilation is done through the magma_opts kwarg, so like:
Fault fails with wrong circt version.
Trying to disable the check as follows doesn't work.
The text was updated successfully, but these errors were encountered: