PKU-IDEA / OpenPARF

🕹 OpenPARF: An Open-Source Placement and Routing Framework for Large-Scale Heterogeneous FPGAs with Deep Learning Toolkit
BSD 3-Clause "New" or "Revised" License
107 stars 13 forks source link

Question about the routing #4

Closed HeadRaising123 closed 7 months ago

HeadRaising123 commented 8 months ago

Thank you very much for your open-source framework!Hello author, when I installed OpenPARF, the placement was able to run, but when using the router provided by the author, I found that router could not be done. After investigating the reason, I found that in line 22 of/OpenPARF/openparf/routing/router. py, import router_ cpp, it is not possible to parse the import "router_cpp". I couldn't find this package in the Python environment. Could you tell me where the problem is and then how to solve it?Thank you! Question for the routing

magic3007 commented 8 months ago

Thank you very much for your interest in OpenPARF. May I inquire if you have set the ENABLE_ROUTER option to disable when running the cmake command?

image

It would be better for debugging if you could provide a complete screenshot of the running command.

JustinJustinJustinJustinJustin666 commented 8 months ago

作者你好,非常感谢你们的开源布局布线框架!我也遇到了上述问题,即已经将ENABLE_ROUTER设置为ON了,也无法进行布线,输出No error,Segmentation fault (core dumped)。于是我重新安装了一遍OpenPARF,在cmake阶段遇到了如下问题。 1705996655360 image 这是我的cmake指令

cmake .. -DCMAKE_PREFIX_PATH=/home/gdut/anaconda3/envs/openparf -DPYTHON_EXECUTABLE=/home/gdut/anaconda3/envs/openparf/bin/python -DPython3_EXECUTABLE=/home/gdut/anaconda3/envs/openparf/bin/python -DCMAKE_INSTALL_PREFIX=/home/gdut/OpenPARF/install
magic3007 commented 8 months ago

If ENABLE_ROUTER has already been set to ON, the appropriate make command should be

cmake .. -DCMAKE_PREFIX_PATH=/home/gdut/anaconda3/envs/openparf -DPYTHON_EXECUTABLE=/home/gdut/anaconda3/envs/openparf/bin/python -DPython3_EXECUTABLE=/home/gdut/anaconda3/envs/openparf/bin/python -DCMAKE_INSTALL_PREFIX=/home/gdut/OpenPARF/install -DENABLE_ROUTER=1

Please try using this command.

JustinJustinJustinJustinJustin666 commented 7 months ago

If ENABLE_ROUTER has already been set to ON, the appropriate make command should be

cmake .. -DCMAKE_PREFIX_PATH=/home/gdut/anaconda3/envs/openparf -DPYTHON_EXECUTABLE=/home/gdut/anaconda3/envs/openparf/bin/python -DPython3_EXECUTABLE=/home/gdut/anaconda3/envs/openparf/bin/python -DCMAKE_INSTALL_PREFIX=/home/gdut/OpenPARF/install -DENABLE_ROUTER=1

Please try using this command.

作者你好,我使用了你所提供的cmake指令进行cmake,make,make install。以ISPD2016的benchmark为例,在FPGA01.json中,添加了"route_flag" : 1,。由于没有GPU,我将GPU选项设置为"gpu" : 0,。随后我在install的文件夹中执行该命令

python openparf.py --config unittest/regression/ispd2016/FPGA01.json 

最后输出的反馈如图所示。 image

magic3007 commented 7 months ago

I'm very sorry, the compilation option should be set to -DENABLE_ROUTER=ON. Please use the following cmake command:

cmake .. -DCMAKE_PREFIX_PATH=/home/gdut/anaconda3/envs/openparf -DPYTHON_EXECUTABLE=/home/gdut/anaconda3/envs/openparf/bin/python -DPython3_EXECUTABLE=/home/gdut/anaconda3/envs/openparf/bin/python -DCMAKE_INSTALL_PREFIX=/home/gdut/OpenPARF/install -DENABLE_ROUTER=ON
JustinJustinJustinJustinJustin666 commented 7 months ago

作者你好,我使用了你提供的cmake指令进行cmake,make,make install。依然是以ISPD2016的benchmark为例,在FPGA01.json中,添加了"route_flag" : 1,。由于没有GPU,我将GPU选项设置为"gpu" : 0,。随后我在install的文件夹中执行命令

python openparf.py --config unittest/regression/ispd2016/FPGA01.json 

之后,出现了Segmentation fault (core dumped)的情况 image

magic3007 commented 7 months ago

Please confirm the following:

  1. The version of G++ is 7.5.0. In our previous trials, errors have occurred when other versions were used.
  2. Ensure that the XML file is accessible and readable.
magic3007 commented 7 months ago

We are fixing issues with the compiler, to make the program work in other compilation environments as well.

JustinJustinJustinJustinJustin666 commented 7 months ago

Please confirm the following:

  1. The version of G++ is 7.5.0. In our previous trials, errors have occurred when other versions were used.
  2. Ensure that the XML file is accessible and readable.

G++版本为7.5.0,XML文件也是可访问可读的。 依然是以ISPD2016的benchmark为例,在FPGA01.json中,添加了"route_flag" : 1,。由于没有GPU,我将GPU选项设置为"gpu" : 0,。 执行该命令:

python openparf.py --config unittest/regression/ispd2016/FPGA01.json

输出以下结果 image

magic3007 commented 7 months ago

Hi, could you please send us the results of the placement, i.e., results/FPGA01/FPGA01.pl for debugging? (My email address is jingmai at pku dot edu dot cn).