fastmachinelearning / hls4ml-tutorial

Tutorial notebooks for hls4ml
http://fastmachinelearning.org/hls4ml-tutorial/
274 stars 123 forks source link

Build Process has been interrupted in 'part6_cnn.ipynb' #73

Closed karlgoes closed 4 months ago

karlgoes commented 6 months ago

Thanks for your support hls4ml team,

When building with codes in 'part6_cnn.ipynb' of hls4ml-tutorial below,
synth = True  # Only if you want to synthesize the models yourself (>1h per model) rather than look at the provided reports.
if synth:
    hls_model.build(csim=False, synth=True, vsynth=True)
    hls_model_q.build(csim=False, synth=True, vsynth=True)
Build Process in both hls_model and hls_model_q has been interrupted in 'part6_cnn.ipynb' with messages like followings,
    ...
    INFO: [XFORM 203-101] Partitioning array 'kernel_data.V.1'  in dimension 1 completely.
    INFO: [XFORM 203-101] Partitioning array 'res_out'  in dimension 1 completely.
    INFO: [XFORM 203-101] Partitioning array 'b10.V'  in dimension 1 completely.
    INFO: [XFORM 203-101] Partitioning array 'mult.V' (firmware/nnet_utils/nnet_dense_latency.h:17) in dimension 1 completely.
    INFO: [XFORM 203-101] Partitioning array 'acc.V' (firmware/nnet_utils/nnet_dense_latency.h:18) in dimension 1 completely.
    INFO: [XFORM 203-101] Partitioning array 'shift_buffer.V' (firmware/nnet_utils/nnet_conv_stream.h:229) in dimension 1 completely.
    INFO: [XFORM 203-101] Partitioning array 'kernel_data.V'  in dimension 1 completely.
    INFO: [XFORM 203-101] Partitioning array 'res_out'  in dimension 1 completely.
    INFO: [XFORM 203-101] Partitioning array 'b6.V'  in dimension 1 completely.
    /opt/Xilinx/Vivado/2019.2/bin/rdiArgs.sh: line 280:  2524 Killed                  "$RDI_PROG" "$@"
    CSynthesis report not found.
    Vivado synthesis report not found.
    Cosim report not found.
    Timing report not found.

when building the models, original settings in project.tcl was part = 'xcvu13p-flga2577-2-e'. That resulted in error, so I changed part as 'xcu250-figd2104-2L-e', as it works OK.

Here are info of dev enviroment.

Environmet

Docker Image: 0.8.0 2019.1: latest

Board Files
    (base) jovyan@a67776abed7b:~/work$ ll /opt/Xilinx/Vivado/2019.2/data/boards/board_files/
    total 44
    drwxr-xr-x 11 root root 4096 Jan  3 08:03 ./
    drwxr-xr-x  4 root root 4096 Jan  3 08:02 ../
    drwxr-xr-x  5 root root 4096 Jan  3 08:02 ac701/
    drwxr-xr-x  6 root root 4096 Jan  3 07:55 au200/
    drwxr-xr-x  6 root root 4096 Jan  3 07:55 au250/
    drwxr-xr-x  2 root root 4096 Jan  3 07:57 li-imx274-mipi/
    drwxr-xr-x  3 root root 4096 Jun 27  2018 pynq-z2/
    drwxr-xr-x  3 root root 4096 Jan  3 07:52 sp701/
    drwxr-xr-x  3 root root 4096 Jan  3 07:57 xm105/
    drwxr-xr-x  5 root root 4096 Jan  3 08:03 zc702/
    drwxr-xr-x  4 root root 4096 Jan  3 08:03 zed/

    (base) jovyan@a67776abed7b:~/work$ ll /opt/Xilinx/Vivado/2019.2/data/boards/board_files/pynq-z2/A.0/
    total 324
    drwxr-xr-x 2 root root   4096 Jun 27  2018 ./
    drwxr-xr-x 3 root root   4096 Jun 27  2018 ../
    -rw-r--r-- 1 root root  54479 May 31  2018 board.xml
    -rw-r--r-- 1 root root   9007 Jun 27  2018 part0_pins.xml
    -rw-r--r-- 1 root root  74492 Jun 19  2018 preset.xml
    -rw-r--r-- 1 root root 175776 Jun 27  2018 pynq_z2.jpg

Please let me know anything that I can handle the issue with

Thanks in advance.

karlgoes commented 4 months ago

Resolved! It is because of system memory that was originally 8G. Upgraded to 40G, it works.