Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NonLinearPlaceFPGA.dump() not defined #22

Open
hailiangh opened this issue Oct 10, 2023 · 1 comment
Open

NonLinearPlaceFPGA.dump() not defined #22

hailiangh opened this issue Oct 10, 2023 · 1 comment
Assignees

Comments

@hailiangh
Copy link

The issue is in file dreamplacefpga/NonLinearPlace.py, line 712.
The function self.dump() is not defined.

To reproduce the error:

Add the following option in test/FPGA-example1.json:

"dump_global_place_solution_flag" : 1

Then run the following command:

python dreamplacefpga/Placer.py test/FPGA-example1.json

Error message:

Traceback (most recent call last):
  File "dreamplacefpga/Placer.py", line 120, in <module>
    placeFPGA(params)
  File "dreamplacefpga/Placer.py", line 44, in placeFPGA
    metrics = placer(params, placedb)
  File "/home/grads/h/hailiang/DREAMPlaceFPGA/dreamplacefpga/NonLinearPlace.py", line 712, in __call__
    self.dump(params, placedb, self.pos[0].cpu(), "%s.lg.pklz" %(params.design_name()))
  File "/home/grads/h/hailiang/anaconda3/envs/dreamplacefpga/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1270, in __getattr__
    type(self).__name__, name))
AttributeError: 'NonLinearPlaceFPGA' object has no attribute 'dump'

Possible method to fix this issue:
Add the dump() and load() function in dreamplacefpga/BasicPlace.py as in DREAMPlace. (I think dump and load work in pairs.)
Links to example: dump( ), load( ).

@rachelselinar
Copy link
Owner

Created initial versions for dump() and load() functions in branch 'load_dump_feature'
Will verify use case before merging.

@rachelselinar rachelselinar self-assigned this Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants