Skip to content

Implement target backend for AIRBIN #3

Implement target backend for AIRBIN

Implement target backend for AIRBIN #3

Triggered via pull request December 4, 2023 22:42
Status Failure
Total duration 9m 54s
Artifacts

lintAndFormat.yml

on: pull_request
Python and C/C++ Lint
2m 5s
Python and C/C++ Lint
Check code format
55s
Check code format
C/C++ test code coverage
9m 43s
C/C++ test code coverage
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 10 warnings
Check code format: python/compiler/aiecc/main.py#L381
[black] reported by reviewdog 🐶 Raw Output: python/compiler/aiecc/main.py:381:- print(output_filename) python/compiler/aiecc/main.py:382:- with open(output_filename, 'w') as f: python/compiler/aiecc/main.py:383:- f.write(s) python/compiler/aiecc/main.py:384:- python/compiler/aiecc/main.py:385:- async def process_xclbin_gen(self): python/compiler/aiecc/main.py:386:- python/compiler/aiecc/main.py:387:- async with self.limit: python/compiler/aiecc/main.py:388:- if(self.stopall): python/compiler/aiecc/main.py:389:- return python/compiler/aiecc/main.py:390:- python/compiler/aiecc/main.py:391:- if(opts.progress): python/compiler/aiecc/main.py:392:- task = self.progress_bar.add_task("[yellow] XCLBIN generation ", total=10, command="starting") python/compiler/aiecc/main.py:393:- else: python/compiler/aiecc/main.py:394:- task = None python/compiler/aiecc/main.py:395:- python/compiler/aiecc/main.py:396:- buffers = ['in', 'tmp', 'out'] python/compiler/aiecc/main.py:397:- python/compiler/aiecc/main.py:398:- install_path = aie.compiler.aiecc.configure.install_path() python/compiler/aiecc/main.py:399:- data_path = os.path.join(install_path, "data") python/compiler/aiecc/main.py:400:- python/compiler/aiecc/main.py:401:- runtime_xaiengine_path = os.path.join(install_path, 'runtime_lib', python/compiler/aiecc/main.py:402:- opts.host_target.split('-')[0], 'xaiengine', 'cdo') python/compiler/aiecc/main.py:403:- xaiengine_include_path = os.path.join(runtime_xaiengine_path, "include") python/compiler/aiecc/main.py:404:- xaiengine_lib_path = os.path.join(runtime_xaiengine_path) python/compiler/aiecc/main.py:405:- python/compiler/aiecc/main.py:406:- for elf in glob.glob('*.elf'): python/compiler/aiecc/main.py:407:- shutil.copy(elf, self.tmpdirname) python/compiler/aiecc/main.py:408:- for elf_map in glob.glob('*.elf.map'): python/compiler/aiecc/main.py:409:- shutil.copy(elf_map, self.tmpdirname) python/compiler/aiecc/main.py:410:- python/compiler/aiecc/main.py:411:- p0 = self.do_call(task, ['clang++', python/compiler/aiecc/main.py:412:- '-fPIC', '-c', '-std=c++17', python/compiler/aiecc/main.py:413:- *self.aie_target_defines(), python/compiler/aiecc/main.py:414:- '-D__AIESIM__', python/compiler/aiecc/main.py:415:- '-D__CDO__', python/compiler/aiecc/main.py:416:- '-D__PS_INIT_AIE__', python/compiler/aiecc/main.py:417:- '-D__LOCK_FENCE_MODE__=2', python/compiler/aiecc/main.py:418:- '-DAIE_OPTION_SCALAR_FLOAT_ON_VECTOR', python/compiler/aiecc/main.py:419:- '-DAIE2_FP32_EMULATION_ACCURACY_FAST', python/compiler/aiecc/main.py:420:- '-Wno-deprecated-declarations', python/compiler/aiecc/main.py:421:- '-I' + self.tmpdirname, python/compiler/aiecc/main.py:422:- '-I' + xaiengine_include_path, python/compiler/aiecc/main.py:423:- '-I' + os.path.join(opts.aietools_path, "include"), python/compiler/aiecc/main.py:424:- '-o', os.path.join(self.tmpdirname, 'gen_cdo.o'), python/compiler/aiecc/main.py:425:- os.path.join(data_path, 'generated-source/gen_cdo.cpp')]) python/compiler/aiecc/main.py:426:- p1 = self.do_call(task, ['clang++', python/compiler/aiecc/main.py:427:- '-fPIC', '-c', '-std=c++17', python/compiler/aiecc/main.py:428:- '-I' + self.tmpdirname, python/compiler/aiecc/main.py:429:- '-I' + xaiengine_include_path, python/compiler/aiecc/main.py:430:- '-I' + os.path.join(opts.aietools_path, "include"), python/compiler/aiecc/main.py:431:- '
Check code format: python/compiler/aiecc/main.py#L706
[black] reported by reviewdog 🐶 Raw Output: python/compiler/aiecc/main.py:706:- self.file_llvmir = os.path.join(self.tmpdirname, 'input.ll') python/compiler/aiecc/main.py:707:- await self.do_call(progress_bar.task, ['aie-translate', '--mlir-to-llvmir', self.file_opt_with_addresses, '-o', self.file_llvmir]) python/compiler/aiecc/main.py:708:- python/compiler/aiecc/main.py:709:- self.file_obj = os.path.join(self.tmpdirname, 'input.o') python/compiler/aiecc/main.py:710:- if(opts.compile and opts.xchesscc): python/compiler/aiecc/main.py:711:- file_llvmir_hacked = await self.chesshack(progress_bar.task, self.file_llvmir) python/compiler/aiecc/main.py:712:- await self.do_call(progress_bar.task, ['xchesscc_wrapper', self.aie_target.lower(), '+w', os.path.join(self.tmpdirname, 'work'), '-c', '-d', '-f', '+P', '4', file_llvmir_hacked, '-o', self.file_obj]) python/compiler/aiecc/main.py:713:- elif(opts.compile): python/compiler/aiecc/main.py:714:- self.file_llvmir_opt= os.path.join(self.tmpdirname, 'input.opt.ll') python/compiler/aiecc/main.py:715:- await self.do_call(progress_bar.task, [peano_opt_path, '--passes=default<O2>', '-inline-threshold=10', '-S', self.file_llvmir, '-o', self.file_llvmir_opt]) python/compiler/aiecc/main.py:716:- python/compiler/aiecc/main.py:717:- await self.do_call(progress_bar.task, [peano_llc_path, self.file_llvmir_opt, '-O2', '--march=%s' % self.aie_target.lower(), '--function-sections', '--filetype=obj', '-o', self.file_obj]) python/compiler/aiecc/main.py:718:- python/compiler/aiecc/main.py:719:- progress_bar.update(progress_bar.task,advance=0,visible=False) python/compiler/aiecc/main.py:720:- progress_bar.task_completed = progress_bar.add_task("[green] AIE Compilation:", total=len(cores)+1, command="%d Workers" % nworkers) python/compiler/aiecc/main.py:721:- python/compiler/aiecc/main.py:722:- processes = [] python/compiler/aiecc/main.py:723:- if(opts.aiesim): python/compiler/aiecc/main.py:724:- processes = [self.process_host_cgen()] python/compiler/aiecc/main.py:725:- await asyncio.gather(*processes) # ensure that process_host_cgen finishes before running gen_sim python/compiler/aiecc/main.py:726:- processes.append(self.gen_sim(progress_bar.task)) python/compiler/aiecc/main.py:727:- for core in cores: python/compiler/aiecc/main.py:728:- processes.append(self.process_core(core)) python/compiler/aiecc/main.py:729:- if(opts.airbin): python/compiler/aiecc/main.py:730:- await asyncio.gather(*processes) python/compiler/aiecc/main.py:731:- processes = [self.process_host_cgen()] python/compiler/aiecc/main.py:732:- await asyncio.gather(*processes) python/compiler/aiecc/main.py:733:- python/compiler/aiecc/main.py:734:- # Must have elfs, before we build the final binary assembly python/compiler/aiecc/main.py:735:- if opts.cdo: python/compiler/aiecc/main.py:736:- processes = [self.process_xclbin_gen()] python/compiler/aiecc/main.py:737:- await asyncio.gather(*processes) python/compiler/aiecc/main.py:738:- python/compiler/aiecc/main.py:739:- def dumpprofile(self): python/compiler/aiecc/main.py:740:- sortedruntimes = sorted(self.runtimes.items(), key=lambda item: item[1], reverse=True) python/compiler/aiecc/main.py:741:- for i in range(50): python/compiler/aiecc/main.py:742:- if(i < len(sortedruntimes)): python/compiler/aiecc/main.py:743:- print("%.4f sec: %s" % (sortedruntimes[i][1], sortedruntimes[i][0]))
Check code format
Process completed with exit code 1.
Python and C/C++ Lint
reviewdog: Too many results (annotations) in diff. You may miss some annotations due to GitHub limitation for annotation created by logging command. Please check GitHub Actions log console to see all results. Limitation: - 10 warning annotations and 10 error annotations per step - 50 annotations per job (sum of annotations from all the steps) - 50 annotations per run (separate from the job annotations, these annotations aren't created by users) Source: https://github.community/t5/GitHub-Actions/Maximum-number-of-annotations-that-can-be-created-using-GitHub/m-p/39085
Python and C/C++ Lint
Process completed with exit code 1.
Python and C/C++ Lint: compiler/aiecc/cl_arguments.py#L174
[pylint] reported by reviewdog 🐶 C0301: Line too long (155/100) (line-too-long) Raw Output: compiler/aiecc/cl_arguments.py:174:0: C0301: Line too long (155/100) (line-too-long)
Python and C/C++ Lint: compiler/aiecc/cl_arguments.py#L14
[pylint] reported by reviewdog 🐶 E0401: Unable to import 'aie.compiler.aiecc.configure' (import-error) Raw Output: compiler/aiecc/cl_arguments.py:14:0: E0401: Unable to import 'aie.compiler.aiecc.configure' (import-error)
Python and C/C++ Lint: compiler/aiecc/cl_arguments.py#L14
[pylint] reported by reviewdog 🐶 W0401: Wildcard import aie.compiler.aiecc.configure (wildcard-import) Raw Output: compiler/aiecc/cl_arguments.py:14:0: W0401: Wildcard import aie.compiler.aiecc.configure (wildcard-import)
Python and C/C++ Lint: compiler/aiecc/cl_arguments.py#L14
[pylint] reported by reviewdog 🐶 E0611: No name 'compiler' in module 'aie' (no-name-in-module) Raw Output: compiler/aiecc/cl_arguments.py:14:0: E0611: No name 'compiler' in module 'aie' (no-name-in-module)
Python and C/C++ Lint: compiler/aiecc/cl_arguments.py#L19
[pylint] reported by reviewdog 🐶 C0103: Constant name "peano_install_dir" doesn't conform to UPPER_CASE naming style ('([^\\W\\da-z][^\\Wa-z]*|__.*__)$' pattern) (invalid-name) Raw Output: compiler/aiecc/cl_arguments.py:19:0: C0103: Constant name "peano_install_dir" doesn't conform to UPPER_CASE naming style ('([^\\W\\da-z][^\\Wa-z]*|__.*__)$' pattern) (invalid-name)
Python and C/C++ Lint: compiler/aiecc/cl_arguments.py#L26
[pylint] reported by reviewdog 🐶 C0103: Constant name "peano_install_dir" doesn't conform to UPPER_CASE naming style ('([^\\W\\da-z][^\\Wa-z]*|__.*__)$' pattern) (invalid-name) Raw Output: compiler/aiecc/cl_arguments.py:26:4: C0103: Constant name "peano_install_dir" doesn't conform to UPPER_CASE naming style ('([^\\W\\da-z][^\\Wa-z]*|__.*__)$' pattern) (invalid-name)
Python and C/C++ Lint: compiler/aiecc/cl_arguments.py#L62
[pylint] reported by reviewdog 🐶 E0602: Undefined variable 'aie_link_with_xchesscc' (undefined-variable) Raw Output: compiler/aiecc/cl_arguments.py:62:16: E0602: Undefined variable 'aie_link_with_xchesscc' (undefined-variable)
Python and C/C++ Lint: compiler/aiecc/cl_arguments.py#L69
[pylint] reported by reviewdog 🐶 E0602: Undefined variable 'aie_link_with_xchesscc' (undefined-variable) Raw Output: compiler/aiecc/cl_arguments.py:69:20: E0602: Undefined variable 'aie_link_with_xchesscc' (undefined-variable)
Python and C/C++ Lint: compiler/aiecc/cl_arguments.py#L90
[pylint] reported by reviewdog 🐶 E0602: Undefined variable 'aie_compile_with_xchesscc' (undefined-variable) Raw Output: compiler/aiecc/cl_arguments.py:90:16: E0602: Undefined variable 'aie_compile_with_xchesscc' (undefined-variable)
Python and C/C++ Lint: compiler/aiecc/cl_arguments.py#L97
[pylint] reported by reviewdog 🐶 E0602: Undefined variable 'aie_compile_with_xchesscc' (undefined-variable) Raw Output: compiler/aiecc/cl_arguments.py:97:20: E0602: Undefined variable 'aie_compile_with_xchesscc' (undefined-variable)