JunningWu / Learning-NVDLA-Notes

NVDLA is an Open source DL/ML accelerator, which is very suitable for individuals or college students. This is the NOTES when I learn and try. Hope THIS PAGE may Helps you a bit. Contact Me:junning.wu@ia.ac.cn
219 stars 66 forks source link

build error in nv_small_256 #18

Open MengXiao92 opened 5 years ago

MengXiao92 commented 5 years ago

你好,直接build nv_small是成功的,但是在build nv_small_256是遇到了一个错误,我修改tree.make PROJECTS := nv_small_256 执行命令:./tools/bin/tmake -build ready_for_test 出现错误: make: *** [vcs_build] Error 255 Died at ./tools/bin/tmake line 254.

在outdir下,查看log $ cat nv_small_256.verif_trace_player.log

Parsing library file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/vlibs/NV_DW02_tree.v' Parsing library file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/vlibs/NV_DW_lsd.v' Parsing library file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/vlibs/NV_DW_minmax.v' Parsing library directory file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/rams/model/RAMDP_128X11_GL_M2_E2.v' Parsing library directory file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/rams/model/RAMDP_80X14_GL_M2_E2.v' Parsing library directory file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/rams/model/RAMPDP_160X16_GL_M2_D2.v' Parsing library directory file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/rams/model/RAMPDP_160X65_GL_M2_D2.v' Parsing library directory file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/rams/synth/nv_ram_rwsp_80x65_logic.v' Parsing library file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/nvdla/nocif/NV_NVDLA_XXIF_libs.v' Parsing included file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/include/simulate_x_tick.vh'. Back to file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/nvdla/nocif/NV_NVDLA_XXIF_libs.v'. Parsing included file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/include/simulate_x_tick.vh'. Back to file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/nvdla/nocif/NV_NVDLA_XXIF_libs.v'. Parsing included file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/include/simulate_x_tick.vh'. Back to file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/nvdla/nocif/NV_NVDLA_XXIF_libs.v'. Parsing included file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/include/simulate_x_tick.vh'. Back to file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/nvdla/nocif/NV_NVDLA_XXIF_libs.v'. Parsing library file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/vlibs/RANDFUNC.vlib' Parsing library file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/vlibs/nv_assert_no_x.vlib' Parsing included file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/vlibs/assertion_header.vh'. Back to file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/vlibs/nv_assert_no_x.vlib'. Parsing included file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/vlibs/assertion_task.vh'. Back to file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/vlibs/nv_assert_no_x.vlib'. Parsing library file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/vlibs/NV_DW02_tree.v' Parsing library file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/vlibs/NV_DW_lsd.v' Parsing library file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/vlibs/NV_DW_minmax.v' Parsing library directory file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/rams/model/RAMPDP_80X66_GL_M1_D2.v' 1 error CPU time: 1.774 seconds to compile Makefile:330: recipe for target 'vcs_build' failed make: *** [vcs_build] Error 255

问一下,吴老师,这是什么问题,您在build nv_small_256时有遇到问题吗? 谢谢~~

redpanda3 commented 5 years ago

貌似是这个版本不能自己改名字的。。。

MengXiao92 commented 5 years ago

@redpanda3 那就是说不能build nv_small_256了?

redpanda3 commented 5 years ago

嗯,对的,不信你可以看一下build文件。

MengXiao92 commented 5 years ago

这样的话,nv_small版本,就不能修改spec了,只能build nv_small.spec吗?那要是想使用更多的MAC,CBUF的配置,应该怎么办呢? 多谢 ~@redpanda3

redpanda3 commented 5 years ago

mac的数量你也是改不了的,只能改nv_large或是nv_small。因为如果mac数量变了的话,cdma里边的逻辑也要改的(不止设置,各种连线都要改)。

MengXiao92 commented 5 years ago

那nv_large和nv_small还可以修改什么呢?譬如说可不可以使能WEIGHT_COMPRESSION,WINOGRAD呢?

redpanda3 commented 5 years ago

winograd和weight compression也是不好用的。