Skip to content

dev.yml.j2: fix etiss ref #534

dev.yml.j2: fix etiss ref

dev.yml.j2: fix etiss ref #534

Triggered via push February 3, 2024 20:09
Status Success
Total duration 24s
Artifacts

style.yml

on: push
Run linters
14s
Run linters
Check for License headers
7s
Check for License headers
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 3 warnings
mlonmcu/target/riscv/ovpsim.py#L30
'.riscv.RISCVTarget' imported but unused (F401)
/home/runner/work/mlonmcu/mlonmcu/mlonmcu/cli/common.py#L117
dest="feature_gen" + suffix, type=str, metavar="FEATURES", nargs="+", action="append", - help=f"Generator statement for features. (Also available: --feature-gen2 ... --feature-gen{number})" - if i == 0 - else argparse.SUPPRESS, + help=( + f"Generator statement for features. (Also available: --feature-gen2 ... --feature-gen{number})" + if i == 0 + else argparse.SUPPRESS + ), ) flow_parser.add_argument( "--config-gen" + suffix, dest="config_gen" + suffix, metavar="KEY=VALUE", nargs="+", action="append", - help=f"Generator statement for configs. (Also available: --config-gen2 ... --config-gen{number})" - if i == 0 - else argparse.SUPPRESS, + help=( + f"Generator statement for configs. (Also available: --config-gen2 ... --config-gen{number})" + if i == 0 + else argparse.SUPPRESS + ), ) add_gen_args(flow_parser, NUM_GEN_ARGS) flow_parser.add_argument( "--parallel",
/home/runner/work/mlonmcu/mlonmcu/mlonmcu/flow/tvm/backend/backend.py#L391
num_threads=self.num_threads, debug_cfg=self.relay_debug, ) if self.use_tlcpack: pre = ["tvmc"] - return utils.exec_getout( - *pre, command, *args, live=self.print_outputs, env=env, cwd=cwd - ) + return utils.exec_getout(*pre, command, *args, live=self.print_outputs, env=env, cwd=cwd) else: if self.tvmc_custom_script is None: pre = ["-m", "tvm.driver.tvmc"] else: pre = [self.tvmc_custom_script]
/home/runner/work/mlonmcu/mlonmcu/mlonmcu/target/target.py#L144
if temp is None: temp = code if handle_exit is not None: temp = handle_exit(temp, out=out) return temp + if self.print_outputs: out = self.exec(elf, *args, cwd=directory, live=True, handle_exit=_handle_exit) else: out = self.exec( elf, *args, cwd=directory, live=False, print_func=lambda *args, **kwargs: None, handle_exit=_handle_exit
/home/runner/work/mlonmcu/mlonmcu/mlonmcu/target/riscv/vicuna.py#L305
if temp is None: temp = code if handle_exit is not None: temp = handle_exit(temp, out=out) return temp + if self.print_outputs: self.prepare_simulator(cwd=directory, live=True) else: self.prepare_simulator(cwd=directory, live=False, print_func=lambda *args, **kwargs: None) simulation_start = time.time()
/home/runner/work/mlonmcu/mlonmcu/mlonmcu/session/run.py#L780
codegen_dir, self.target ) # TODO: has to go into different dirs # artifacts = self.compile_platform.artifacts if isinstance(artifacts, dict): new = { - key - if name in ["", "default"] - else (f"{name}_{key}" if key not in ["", "default"] else name): value + ( + key + if name in ["", "default"] + else (f"{name}_{key}" if key not in ["", "default"] else name) + ): value for key, value in artifacts.items() } else: new = {name if name in ["", "default"] else f"{name}": artifacts} self.artifacts_per_stage[RunStage.COMPILE].update(new)
/home/runner/work/mlonmcu/mlonmcu/scripts/gen_tflmc_benchmarks.py#L21
def post_session(self, report): """Called at the end of a session.""" df = report.post_df.copy() df["Kernels"] = df.apply( - lambda row: "muRISCV-NN" - if row.get("feature_muriscvnn") or row.get("feature_muriscvnnbyoc") - else ( - "CMSIS-NN" - if row.get("feature_cmsisnn") or row.get("feature_cmsisnnbyoc") - else ("Autotuned" if row.get("feature_autotuned") else "Default") + lambda row: ( + "muRISCV-NN" + if row.get("feature_muriscvnn") or row.get("feature_muriscvnnbyoc") + else ( + "CMSIS-NN" + if row.get("feature_cmsisnn") or row.get("feature_cmsisnnbyoc") + else ("Autotuned" if row.get("feature_autotuned") else "Default") + ) ), axis=1, ) report.post_df = df
/home/runner/work/mlonmcu/mlonmcu/scripts/gen_muriscnn_benchmarks.py#L23
def post_session(self, report): """Called at the end of a session.""" df = report.post_df.copy() df["Kernels"] = df.apply( - lambda row: "muRISCV-NN" - if row.get("feature_muriscvnn") or row.get("feature_muriscvnnbyoc") - else ( - "CMSIS-NN" - if row.get("feature_cmsisnn") or row.get("feature_cmsisnnbyoc") - else ("Autotuned" if row.get("feature_autotuned") else "Default") + lambda row: ( + "muRISCV-NN" + if row.get("feature_muriscvnn") or row.get("feature_muriscvnnbyoc") + else ( + "CMSIS-NN" + if row.get("feature_cmsisnn") or row.get("feature_cmsisnnbyoc") + else ("Autotuned" if row.get("feature_autotuned") else "Default") + ) ), axis=1, ) # TODO: allow combinations df["Extensions"] = df.apply( - lambda row: "VEXT+PEXT" - if row.get("feature_vext") and row.get("feature_pext") - else ( - "VEXT" - if row.get("feature_vext") + lambda row: ( + "VEXT+PEXT" + if row.get("feature_vext") and row.get("feature_pext") else ( - "PEXT" - if row.get("feature_pext") + "VEXT" + if row.get("feature_vext") else ( - "MVEI+DSP" - if row.get("feature_arm_mvei") and row.get("feature_arm_dsp") - else ("MVEI" if row.get("feature_arm_mvei") else ("DSP" if row.get("feature_arm_dsp") else "")) + "PEXT" + if row.get("feature_pext") + else ( + "MVEI+DSP" + if row.get("feature_arm_mvei") and row.get("feature_arm_dsp") + else ( + "MVEI" if row.get("feature_arm_mvei") else ("DSP" if row.get("feature_arm_dsp") else "") + ) + ) ) ) ), axis=1, )
/home/runner/work/mlonmcu/mlonmcu/tests/integration-tests/toolchains/test_riscv_llvm.py#L1
"""Test used RISC-V GCC Toolchains""" + # import pytest # from mlonmcu.environment.config import PathConfig # from mlonmcu.session.run import RunStage # from mlonmcu.target.riscv.riscv import RISCVTarget
/home/runner/work/mlonmcu/mlonmcu/scripts/gen_tvm_riscv_benchmarks.py#L23
def post_session(self, report): """Called at the end of a session.""" df = report.post_df.copy() df["Schedules"] = df.apply( - lambda row: "ARM (Tuned)" - if row.get("config_tvmaot.target_device", "") == "arm_cpu" and row.get("feature_autotuned") - else "ARM" - if row.get("config_tvmaot.target_device", "") == "arm_cpu" - else "RISC-V (Tuned)" - if row.get("feature_target_optimized") and row.get("feature_autotuned") - else "RISC-V" - if row.get("feature_target_optimized") - else ("Default (Tuned)" if row.get("feature_autotuned") else "Default"), + lambda row: ( + "ARM (Tuned)" + if row.get("config_tvmaot.target_device", "") == "arm_cpu" and row.get("feature_autotuned") + else ( + "ARM" + if row.get("config_tvmaot.target_device", "") == "arm_cpu" + else ( + "RISC-V (Tuned)" + if row.get("feature_target_optimized") and row.get("feature_autotuned") + else ( + "RISC-V" + if row.get("feature_target_optimized") + else ("Default (Tuned)" if row.get("feature_autotuned") else "Default") + ) + ) + ) + ), axis=1, ) # TODO: allow combinations df["Extensions"] = df.apply( - lambda row: "VEXT+PEXT" - if row.get("feature_vext") and row.get("feature_pext") - else ("VEXT" if row.get("feature_vext") else ("PEXT" if row.get("feature_pext") else (None))), + lambda row: ( + "VEXT+PEXT" + if row.get("feature_vext") and row.get("feature_pext") + else ("VEXT" if row.get("feature_vext") else ("PEXT" if row.get("feature_pext") else (None))) + ), axis=1, ) report.post_df = df
/home/runner/work/mlonmcu/mlonmcu/tests/integration-tests/toolchains/test_riscv_gcc.py#L1
"""Test used RISC-V GCC Toolchains""" + import pytest # from mlonmcu.session.run import RunStage from mlonmcu.testing.riscv_toolchain import ( _get_target_config,
Check for License headers
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Run linters
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4, wearerequired/lint-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Run linters
The following actions uses node12 which is deprecated and will be forced to run on node16: wearerequired/lint-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/