efabless / mpw_precheck

Apache License 2.0
34 stars 26 forks source link

precheck runs out of memory for gfmpw-0d #172

Open proppy opened 1 year ago

proppy commented 1 year ago

It seems that the precheck runs out of memory during klayout check causing the following traceback when being run on github actions:

{{STEP UPDATE}} Executing Check 3 of 4: Klayout BEOL
Traceback (most recent call last):
  File "mpw_precheck.py", line 141, in <module>
    default_content='_default_content')
  File "mpw_precheck.py", line 102, in main
    run_precheck_sequence(precheck_config=precheck_config, project_config=project_config)
  File "mpw_precheck.py", line 68, in run_precheck_sequence
    results[check.__surname__] = check.run()
  File "/home/runner/mpw_precheck/check_manager/__init__.py", line 156, in run
    self.klayout_cmd_extra_args)
  File "/home/runner/mpw_precheck/checks/drc_checks/klayout/klayout_gds_drc_check.py", line 20, in klayout_gds_drc_check
    with open(report_file_path) as klayout_xml_report:
FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/tiny_user_project/tiny_user_project/precheck_results/30_NOV_2022___15_55_12/outputs/reports/klayout_beol_check.xml'

See https://github.com/proppy/tiny_user_project/actions/runs/3584751075/jobs/6032164785

proppy commented 1 year ago

Maybe related to https://github.com/efabless/globalfoundries-pdk-libs-gf180mcu_fd_pr/issues/1

proppy commented 1 year ago

I think this is due to: https://github.com/KLayout/klayout/issues/1189

And likely to only happen in memory limited environment (like github actions).

It is fixed with: https://github.com/KLayout/klayout/pull/1193 but will only land in klayout 0.28 (in a few weeks)

whutddk commented 1 year ago

I have the same problem. https://platform.efabless.com/shuttles/GFMPW-0/project/1634 It can pass locally with 64GB memory. But failed online. Can these project bypass the online precheck manually?

gatecat commented 1 year ago

I have the same problem with both of these projects: https://platform.efabless.com/projects/1505 https://platform.efabless.com/projects/1589

A reduced size version of the latter does pass online fine: https://platform.efabless.com/projects/1613

gatecat commented 1 year ago

Bumping klayout on the platform seems like the best solution here imo

egorxe commented 1 year ago

Same here https://platform.efabless.com/projects/1637 . Precheck passes locally with latest KLayout but OOMs on platform during FEOL CO.6a.

AbdulMoizSheikh1 commented 1 year ago

Hi every one, I am having same issue for my projects. https://platform.efabless.com/projects/1664 and https://platform.efabless.com/projects/1713 The FEOL is failing and after inspecting logs I am certain that this due to not running complete tests on the gds as the memory fills up and test fails. I have tried it with with 60 GB local machine but logs show same problem. Is the memory use-age related to design size too?? Also is there any way to reduce the memory useage in FEOL stage as the memory use-age is too much and this makes designing on not very high end systems quite impossible.

jeffdi commented 1 year ago

Please go ahead and submit your project if you are able to successfully complete a precheck offline running locally.

Do submit a precheck job on the platform and also include a comment in the messages for your shuttle submission that your precheck passes successfully locally.

We will include it in the selection process and run the precheck and tapeout manually for your project. Thanks.