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

Virtual Simulator hung when executing inference test using prebuilt VP Simulator #28

Open
sushilb270 opened this issue Oct 2, 2018 · 7 comments

Comments

@sushilb270
Copy link

Hi,
I am learning to use fabulous NVDLA architecture.
I am using AWS FPGA AMI to execute the basic tests.
I am using the prebuilt Virtual Simulator on NVIDIA AMI as per http://nvdla.org/vp_fpga.html#using-the-virtual-simulator-on-nvidia-ami

I am trying to run inference test using the following command:
$ ./nvdla_runtime --loadable kmd/NN/NN_L0_0_fbuf --image /mnt/sw/regression/images/digits/one.pgm

The Virtual Simulator seems to work fine but it get hung i.e. does not return to # prompt of the simulator. Also the run does not generate output.dimg

Please let me know, if any steps are missing or I need to recompile the SW.

The detailed steps followed are as follows:
AWS FPGA AMI used has prebuilt NVDLA repository.
Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-143-generic x86_64)
Following steps are performed:
$ cd /home/ubuntu/nvdla
$ source /usr/local/nvdla/aws-fpga/sdk_setup.sh

$ ./setup_aws.sh
$ ./setup_fpga.sh
I am using NVIDIA Sample AFI, as I want to run inference test on AWS FPGA platform.

$ cd /usr/local/nvdla
$ sudo ./aarch64_toplevel -c aarch64_nvdla.lua --fpga
Login the kernel with account 'root' and password 'nvdla'

$ mount -t 9p -o trans=virtio r /mnt
$ cd /mnt/sw/prebuilt/linux/
$ insmod drm.ko
$ insmod opendla_small.ko
Now run the inference test:
$ ./nvdla_runtime --loadable kmd/NN/NN_L0_0_fbuf --image /mnt/sw/regression/imag
es/digits/one.pgm

creating new runtime context...
Emulator starting
ppgminfo 1 28 28
pgm2dimg 1 28 28 1 32 896 896
submitting tasks...
Work Found!
Work Done
[ 286.175452] Enter:dla_read_network_config
[ 286.177945] Exit:dla_read_network_config status=0
[ 286.178284] Enter: dla_initiate_processors
[ 286.179167] Enter: dla_submit_operation
[ 286.179426] Prepare Convolution operation index 0 ROI 0 dep_count 1
[ 286.179777] Enter: dla_prepare_operation
[ 286.180182] processor:Convolution group:0, rdma_group:0 available
[ 286.180585] Enter: dla_read_config
[ 286.191015] Exit: dla_read_config
[ 286.191313] Exit: dla_prepare_operation status=0
[ 286.191631] Enter: dla_program_operation
[ 286.191886] Program Convolution operation index 0 ROI 0 Group[0]
[ 286.197917] no desc get due to index==-1
[ 286.198930] no desc get due to index==-1
[ 286.199171] no desc get due to index==-1
[ 286.199400] no desc get due to index==-1
[ 286.199643] no desc get due to index==-1
[ 286.199896] Enter: dla_op_programmed
[ 286.200226] Update dependency operation index 3 ROI 0 DEP_COUNT=3
[ 286.200589] Update dependency operation index 1 ROI 0 DEP_COUNT=1
[ 286.202398] enable SDP in dla_update_dependency as depdency are resolved
[ 286.202833] Enter: dla_enable_operation
[ 286.203098] exit dla_enable_operation without actual enable due to processor hasn't been programmed
[ 286.203600] Exit: dla_enable_operation status=0
[ 286.203920] Exit: dla_op_programmed
[ 286.204153] Exit: dla_program_operation status=0
[ 286.204453] Exit: dla_submit_operation
[ 286.206215] Enter: dla_dequeue_operation
[ 286.206544] Dequeue op from Convolution processor, index=3 ROI=0
[ 286.206946] Enter: dla_submit_operation
[ 286.207188] Prepare Convolution operation index 3 ROI 0 dep_count 2
[ 286.207535] Enter: dla_prepare_operation
[ 286.207858] processor:Convolution group:1, rdma_group:0 available
[ 286.208213] Enter: dla_read_config
[ 286.218391] Exit: dla_read_config
[ 286.218660] Exit: dla_prepare_operation status=0
[ 286.218935] Enter: dla_program_operation
[ 286.219198] Program Convolution operation index 3 ROI 0 Group[1]
[ 286.222859] no desc get due to index==-1
[ 286.225318] no desc get due to index==-1
[ 286.225610] no desc get due to index==-1
[ 286.225848] no desc get due to index==-1
[ 286.226120] no desc get due to index==-1
[ 286.226386] Enter: dla_op_programmed
[ 286.226640] Update dependency operation index 6 ROI 0 DEP_COUNT=3
[ 286.227028] Update dependency operation index 4 ROI 0 DEP_COUNT=2
[ 286.227411] Exit: dla_op_programmed
[ 286.227647] Exit: dla_program_operation status=0
[ 286.227953] Exit: dla_submit_operation
[ 286.228237] Exit: dla_dequeue_operation
[ 286.228526] Enter: dla_submit_operation
[ 286.231000] Prepare SDP operation index 1 ROI 0 dep_count 0
[ 286.231355] Enter: dla_prepare_operation
[ 286.231725] processor:SDP group:0, rdma_group:0 available
[ 286.232037] Enter: dla_read_config
[ 286.241702] Exit: dla_read_config
[ 286.242057] Exit: dla_prepare_operation status=0
[ 286.242367] Enter: dla_program_operation
[ 286.242615] Program SDP operation index 1 ROI 0 Group[0]
[ 286.246296] no desc get due to index==-1
[ 286.246583] no desc get due to index==-1
[ 286.247224] no desc get due to index==-1
[ 286.247468] no desc get due to index==-1
[ 286.247727] Enter: dla_op_programmed
[ 286.247957] Update dependency operation index 4 ROI 0 DEP_COUNT=1
[ 286.248295] enable SDP in dla_update_dependency as depdency are resolved
[ 286.250030] Enter: dla_enable_operation
[ 286.250332] exit dla_enable_operation without actual enable due to processor hasn't been programmed
[ 286.250835] Exit: dla_enable_operation status=0
[ 286.251101] Exit: dla_op_programmed
[ 286.251321] Exit: dla_program_operation status=0
[ 286.251600] Enter: dla_enable_operation
[ 286.251880] Enable SDP operation index 1 ROI 0
[ 286.252405] Enter: dla_op_enabled
[ 286.252652] Update dependency operation index 0 ROI 0 DEP_COUNT=1
[ 286.254637] enable Convolution in dla_update_dependency as depdency are resolved
[ 286.255053] Enter: dla_enable_operation
[ 286.255291] Enable Convolution operation index 0 ROI 0
[ 286.256139] Enter: dla_op_enabled
[ 286.256369] Exit: dla_op_enabled
[ 286.256585] Exit: dla_enable_operation status=0
[ 286.258190] Exit: dla_op_enabled
[ 286.258443] Exit: dla_enable_operation status=0
[ 286.258730] Exit: dla_submit_operation
[ 286.258970] Enter: dla_dequeue_operation
[ 286.259213] Dequeue op from SDP processor, index=4 ROI=0
[ 286.259530] Enter: dla_submit_operation
[ 286.259786] Prepare SDP operation index 4 ROI 0 dep_count 0
[ 286.260122] Enter: dla_prepare_operation
[ 286.262535] processor:SDP group:1, rdma_group:1 available
[ 286.262890] Enter: dla_read_config
[ 286.271270] Exit: dla_read_config
[ 286.272520] Exit: dla_prepare_operation status=0
[ 286.273591] Enter: dla_program_operation
[ 286.273894] Program SDP operation index 4 ROI 0 Group[1]
[ 286.275691] no desc get due to index==-1
[ 286.275933] no desc get due to index==-1
[ 286.276962] no desc get due to index==-1
[ 286.278397] no desc get due to index==-1
[ 286.278695] Enter: dla_op_programmed
[ 286.278931] Update dependency operation index 7 ROI 0 DEP_COUNT=2
[ 286.279277] Exit: dla_op_programmed
[ 286.279507] Exit: dla_program_operation status=0
[ 286.279788] Enter: dla_enable_operation
[ 286.280071] Enable SDP operation index 4 ROI 0
[ 286.280524] Enter: dla_op_enabled
[ 286.282219] Update dependency operation index 3 ROI 0 DEP_COUNT=2
[ 286.282598] Exit: dla_op_enabled
[ 286.282808] Exit: dla_enable_operation status=0
[ 286.283080] Exit: dla_submit_operation
[ 286.283311] Exit: dla_dequeue_operation
[ 286.283547] Enter: dla_submit_operation
[ 286.283790] Prepare PDP operation index 2 ROI 0 dep_count 1
[ 286.284104] Enter: dla_prepare_operation
[ 286.284460] processor:PDP group:0, rdma_group:0 available
[ 286.286352] Enter: dla_read_config

At this point, the VP simulator hung.

Please let me know, if any steps are missing or I need to recompile the SW.

Regards,
-Sushil Behere

@fisherxue
Copy link

I'm getting a similar issue running the Virtual Platform on local device:

I am using the prebuilt Virtual Platform via the Docker container: http://nvdla.org/vp.html#running-the-virtual-simulator-from-docker

I have copied the /sw folder to /usr/local/nvdla
Then run: aarch64_toplevel -c aarch64_nvdla.lua
Login as user: root pw: nvdla
mount -t 9p -o trans=virtio r /mnt
cd /mnt
./nvdla_runtime --loadable sw/regression/flatbufs/kmd/NN/NN_L0_0_fbuf --image
sw/regression/images/digits/one.pgm

This is the output:
`

./nvdla_runtime --loadable sw/regression/flatbufs/kmd/NN/NN_L0_0_fbuf --image

sw/regression/images/digits/one.pgm
creating new runtime context...
Emulator starting
pgm2dimg 1 28 28 1 896 25088 25088
submitting tasks...
Work Found!
Work Done
[ 513.599764] Enter:dla_read_network_config
[ 513.600635] Exit:dla_read_network_config status=0
[ 513.600960] Enter: dla_initiate_processors
[ 513.602882] Enter: dla_submit_operation
[ 513.603221] Prepare Convolution operation index 0 ROI 0 dep_count 1
[ 513.603696] Enter: dla_prepare_operation
[ 513.604349] processor:Convolution group:0, rdma_group:0 available
[ 513.604751] Enter: dla_read_config
[ 513.606707] Exit: dla_read_config
[ 513.607093] Exit: dla_prepare_operation status=0
[ 513.607526] Enter: dla_program_operation
[ 513.607864] Program Convolution operation index 0 ROI 0 Group[0]
[ 513.623099] no desc get due to index==-1
[ 513.631029] no desc get due to index==-1
[ 513.633466] no desc get due to index==-1
[ 513.633827] no desc get due to index==-1
[ 513.634496] no desc get due to index==-1
[ 513.634838] Enter: dla_op_programmed
[ 513.635727] Update dependency operation index 3 ROI 0 DEP_COUNT=3
[ 513.636562] Update dependency operation index 1 ROI 0 DEP_COUNT=1
[ 513.636994] enable SDP in dla_update_dependency as depdency are resolved
[ 513.639231] Enter: dla_enable_operation
[ 513.639932] exit dla_enable_operation without actual enable due to processor hasn't been programmed
[ 513.640727] Exit: dla_enable_operation status=0
[ 513.642168] Exit: dla_op_programmed
[ 513.642510] Exit: dla_program_operation status=0
[ 513.642855] Exit: dla_submit_operation
[ 513.643217] Enter: dla_dequeue_operation
[ 513.643546] Dequeue op from Convolution processor, index=3 ROI=0
[ 513.644002] Enter: dla_submit_operation
[ 513.644270] Prepare Convolution operation index 3 ROI 0 dep_count 2
[ 513.644662] Enter: dla_prepare_operation
[ 513.648124] processor:Convolution group:1, rdma_group:0 available
[ 513.648632] Enter: dla_read_config
[ 513.651238] Exit: dla_read_config
[ 513.651552] Exit: dla_prepare_operation status=0
[ 513.651945] Enter: dla_program_operation
[ 513.652268] Program Convolution operation index 3 ROI 0 Group[1]
[ 513.658202] no desc get due to index==-1
[ 513.659009] no desc get due to index==-1
[ 513.659310] no desc get due to index==-1
[ 513.659700] no desc get due to index==-1
[ 513.660002] no desc get due to index==-1
[ 513.660309] Enter: dla_op_programmed
[ 513.660690] Update dependency operation index 6 ROI 0 DEP_COUNT=3
[ 513.662768] Update dependency operation index 4 ROI 0 DEP_COUNT=2
[ 513.663213] Exit: dla_op_programmed
[ 513.663484] Exit: dla_program_operation status=0
[ 513.663748] Exit: dla_submit_operation
[ 513.664211] Exit: dla_dequeue_operation
[ 513.664568] Enter: dla_submit_operation
[ 513.664913] Prepare SDP operation index 1 ROI 0 dep_count 0
[ 513.667343] Enter: dla_prepare_operation
[ 513.667914] processor:SDP group:0, rdma_group:0 available
[ 513.668300] Enter: dla_read_config
[ 513.668861] Exit: dla_read_config
[ 513.670410] Exit: dla_prepare_operation status=0
[ 513.670844] Enter: dla_program_operation
[ 513.671168] Program SDP operation index 1 ROI 0 Group[0]
[ 513.674800] no desc get due to index==-1
[ 513.675127] no desc get due to index==-1
[ 513.675549] no desc get due to index==-1
[ 513.675800] no desc get due to index==-1
[ 513.676278] Enter: dla_op_programmed
[ 513.676613] Update dependency operation index 4 ROI 0 DEP_COUNT=1
[ 513.677034] enable SDP in dla_update_dependency as depdency are resolved
[ 513.680560] Enter: dla_enable_operation
[ 513.680875] exit dla_enable_operation without actual enable due to processor hasn't been programmed
[ 513.683481] Exit: dla_enable_operation status=0
[ 513.683820] Exit: dla_op_programmed
[ 513.684184] Exit: dla_program_operation status=0
[ 513.684535] Enter: dla_enable_operation
[ 513.684876] Enable SDP operation index 1 ROI 0
[ 513.690352] Enter: dla_op_enabled
[ 513.691040] Update dependency operation index 0 ROI 0 DEP_COUNT=1
[ 513.691906] enable Convolution in dla_update_dependency as depdency are resolved
[ 513.692709] Enter: dla_enable_operation
[ 513.693256] Enable Convolution operation index 0 ROI 0
[ 513.702157] Enter: dla_op_enabled
[ 513.702576] Exit: dla_op_enabled
[ 513.702818] Exit: dla_enable_operation status=0
[ 513.703100] Exit: dla_op_enabled
[ 513.703462] Exit: dla_enable_operation status=0
[ 513.703754] Exit: dla_submit_operation
[ 513.704051] Enter: dla_dequeue_operation
[ 513.704400] Dequeue op from SDP processor, index=4 ROI=0
[ 513.704752] Enter: dla_submit_operation
[ 513.704995] Prepare SDP operation index 4 ROI 0 dep_count 0
[ 513.705464] Enter: dla_prepare_operation

Info: NV_NVDLA_cdma.cpp: 1265:NV_NVDLA_cdma::DirectConvDataResponseSequencerCommon, invalid configuration cdma_entries_, set value is 0x6, it shall be 0x7FF.
[ 514.265688] processor:SDP group:1, rdma_group:1 available
[ 514.287051] Enter: dla_read_config
[ 514.303952] Exit: dla_read_config
[ 514.326388] Exit: dla_prepare_operation status=0
[ 514.348169] Enter: dla_program_operation

`
At which point it hangs.

@ccshi
Copy link

ccshi commented Sep 2, 2019

Hi! Have you save it?
I meet the same question, as the following:

creating new runtime context...
[ 63.832993] random: crng init done
Emulator starting
pgm2dimg 1 227 227 1 7264 1648928 1648928
(DLA_TEST) Error 0x00000004: Mismatched channel: 1 != 3 (in TestUtils.cpp, function createImageCopy(), line 160)
submitting tasks...
[ 305.110588] Enter:dla_read_network_config
[ 305.111182] Exit:dla_read_network_config status=0
[ 305.111356] Enter: dla_initiate_processors
[ 305.111667] Enter: dla_submit_operation
[ 305.111794] Prepare Convolution operation index 0 ROI 0 dep_count 1
[ 305.111992] Enter: dla_prepare_operation
[ 305.112434] processor:Convolution group:0, rdma_group:0 available
[ 305.112698] Enter: dla_read_config
[ 305.114365] Exit: dla_read_config
[ 305.114504] Exit: dla_prepare_operation status=0
[ 305.114671] Enter: dla_program_operation
[ 305.114807] Program Convolution operation index 0 ROI 0 Group[0]
[ 305.118857] no desc get due to index==-1
[ 305.119065] no desc get due to index==-1
[ 305.119181] no desc get due to index==-1
[ 305.119299] no desc get due to index==-1
[ 305.119430] no desc get due to index==-1
[ 305.119565] Enter: dla_op_programmed
[ 305.119752] Update dependency operation index 2 ROI 0 DEP_COUNT=2
[ 305.119948] Update dependency operation index 1 ROI 0 DEP_COUNT=1
[ 305.120149] enable SDP in dla_update_dependency as depdency are resolved
[ 305.120340] Enter: dla_enable_operation
[ 305.120487] exit dla_enable_operation without actual enable due to processor hasn't been programmed
[ 305.120786] Exit: dla_enable_operation status=0
[ 305.122469] Exit: dla_op_programmed
[ 305.122588] Exit: dla_program_operation status=0
[ 305.122701] Exit: dla_submit_operation
[ 305.122875] Enter: dla_dequeue_operation
[ 305.123042] Dequeue op from Convolution processor, index=2 ROI=0
[ 305.123257] Enter: dla_submit_operation
[ 305.123399] Prepare Convolution operation index 2 ROI 0 dep_count 1
[ 305.123582] Enter: dla_prepare_operation
[ 305.123814] processor:Convolution group:1, rdma_group:0 available
[ 305.124044] Enter: dla_read_config
[ 305.124360] Exit: dla_read_config
[ 305.124522] Exit: dla_prepare_operation status=0
[ 305.124724] Enter: dla_program_operation
[ 305.124880] Program Convolution operation index 2 ROI 0 Group[1]
[ 305.128985] no desc get due to index==-1
[ 305.129802] no desc get due to index==-1
[ 305.129974] no desc get due to index==-1
[ 305.130145] no desc get due to index==-1
[ 305.130278] no desc get due to index==-1
[ 305.130448] Enter: dla_op_programmed
[ 305.130625] Update dependency operation index 4 ROI 0 DEP_COUNT=2
[ 305.130894] Update dependency operation index 3 ROI 0 DEP_COUNT=2
[ 305.131165] Exit: dla_op_programmed
[ 305.131331] Exit: dla_program_operation status=0
[ 305.131543] Exit: dla_submit_operation
[ 305.131743] Exit: dla_dequeue_operation
[ 305.131948] Enter: dla_submit_operation
[ 305.132130] Prepare SDP operation index 1 ROI 0 dep_count 0
[ 305.132375] Enter: dla_prepare_operation
[ 305.132720] processor:SDP group:0, rdma_group:0 available
[ 305.132965] Enter: dla_read_config
[ 305.135112] Exit: dla_read_config
[ 305.135311] Exit: dla_prepare_operation status=0
[ 305.135538] Enter: dla_program_operation
[ 305.135714] Program SDP operation index 1 ROI 0 Group[0]
[ 305.138595] no desc get due to index==-1
[ 305.138759] no desc get due to index==-1
[ 305.138924] no desc get due to index==-1
[ 305.139089] no desc get due to index==-1
[ 305.139264] no desc get due to index==-1
[ 305.139422] Enter: dla_op_programmed
[ 305.139576] Update dependency operation index 3 ROI 0 DEP_COUNT=1
[ 305.139845] enable SDP in dla_update_dependency as depdency are resolved
[ 305.140137] Enter: dla_enable_operation
[ 305.140332] exit dla_enable_operation without actual enable due to processor hasn't been programmed
[ 305.140738] Exit: dla_enable_operation status=0
[ 305.140940] Exit: dla_op_programmed
[ 305.142707] Exit: dla_program_operation status=0
[ 305.142887] Enter: dla_enable_operation
[ 305.143084] Enable SDP operation index 1 ROI 0
[ 305.143536] Enter: dla_op_enabled
[ 305.143708] Update dependency operation index 0 ROI 0 DEP_COUNT=1
[ 305.143977] enable Convolution in dla_update_dependency as depdency are resolved
[ 305.144312] Enter: dla_enable_operation
[ 305.144499] Enable Convolution operation index 0 ROI 0
[ 305.147453] Enter: dla_op_enabled
[ 305.147622] Exit: dla_op_enabled
[ 305.147769] Exit: dla_enable_operation status=0
[ 305.147956] Exit: dla_op_enabled
[ 305.148098] Exit: dla_enable_operation status=0
[ 305.148309] Exit: dla_submit_operation
[ 305.148492] Enter: dla_dequeue_operation
[ 305.148683] Dequeue op from SDP processor, index=3 ROI=0
[ 305.148926] Enter: dla_submit_operation
[ 305.150205] Prepare SDP operation index 3 ROI 0 dep_count 0
[ 305.150420] Enter: dla_prepare_operation
[ 305.218564] processor:SDP group:1, rdma_group:1 available
[ 305.220301] Enter: dla_read_config
[ 305.220767] Exit: dla_read_config
[ 305.221003] Exit: dla_prepare_operation status=0
[ 305.222397] Enter: dla_program_operation
[ 305.222653] Program SDP operation index 3 ROI 0 Group[1]
[ 305.230266] no desc get due to index==-1
[ 305.231655] no desc get due to index==-1
[ 305.231934] no desc get due to index==-1
[ 305.232168] no desc get due to index==-1
[ 305.232376] no desc get due to index==-1
[ 305.232560] Enter: dla_op_programmed
[ 305.232740] Update dependency operation index 5 ROI 0 DEP_COUNT=2
[ 305.233984] Exit: dla_op_programmed
[ 305.234154] Exit: dla_program_operation status=0
[ 305.234366] Enter: dla_enable_operation
[ 305.234596] Enable SDP operation index 3 ROI 0
[ 305.235609] Enter: dla_op_enabled
[ 305.235772] Update dependency operation index 2 ROI 0 DEP_COUNT=1
[ 305.236036] enable Convolution in dla_update_dependency as depdency are resolved
[ 305.236370] Enter: dla_enable_operation
[ 305.236538] Enable Convolution operation index 2 ROI 0
[ 305.238883] Enter: dla_op_enabled
[ 305.240361] Exit: dla_op_enabled
[ 305.240502] Exit: dla_enable_operation status=0
[ 305.240705] Exit: dla_op_enabled
[ 305.240858] Exit: dla_enable_operation status=0
[ 305.241933] Exit: dla_submit_operation
[ 305.242097] Exit: dla_dequeue_operation
[ 305.242292] Enter: dla_submit_operation
[ 305.242480] Prepare PDP operation index 11 ROI 0 dep_count 1
[ 305.242726] Enter: dla_prepare_operation
[ 305.243566] processor:PDP group:0, rdma_group:0 available
[ 305.243771] Enter: dla_read_config
[ 305.244114] Exit: dla_read_config
[ 305.244305] Exit: dla_prepare_operation status=0
[ 305.244522] Enter: dla_program_operation
[ 305.244696] Program PDP operation index 11 ROI 0 Group[0]
[ 305.244957] group id 0 rdma id 0
[ 305.256516] no desc get due to index==-1
[ 305.256691] no desc get due to index==-1
[ 305.256878] no desc get due to index==-1
[ 305.257826] no desc get due to index==-1
[ 305.258015] no desc get due to index==-1
[ 305.258166] Enter: dla_op_programmed
[ 305.258329] Update dependency operation index 15 ROI 0 DEP_COUNT=2
[ 305.258587] Exit: dla_op_programmed
[ 305.258744] Exit: dla_program_operation status=0
[ 305.258942] Exit: dla_submit_operation
[ 305.259104] Enter: dla_dequeue_operation
[ 305.259285] Dequeue op from PDP processor, index=15 ROI=0
[ 305.259534] Enter: dla_submit_operation
[ 305.259694] Prepare PDP operation index 15 ROI 0 dep_count 1
[ 305.259941] Enter: dla_prepare_operation
[ 305.260641] processor:PDP group:1, rdma_group:1 available
[ 305.260874] Enter: dla_read_config
[ 305.262997] Exit: dla_read_config
[ 305.263160] Exit: dla_prepare_operation status=0
[ 305.263339] Enter: dla_program_operation
[ 305.263512] Program PDP operation index 15 ROI 0 Group[1]
[ 305.263734] group id 1 rdma id 1
[ 305.281563] no desc get due to index==-1
[ 305.281883] no desc get due to index==-1
[ 305.282069] no desc get due to index==-1
[ 305.282249] no desc get due to index==-1
[ 305.282428] no desc get due to index==-1
[ 305.282606] Enter: dla_op_programmed
[ 305.282784] Update dependency operation index 22 ROI 0 DEP_COUNT=2
[ 305.283060] Exit: dla_op_programmed
[ 305.283233] Exit: dla_program_operation status=0
[ 305.283426] Exit: dla_submit_operation
[ 305.283611] Exit: dla_dequeue_operation
[ 305.283829] Enter: dla_submit_operation
[ 305.284022] Prepare CDP operation index 10 ROI 0 dep_count 1
[ 305.284277] Enter: dla_prepare_operation
[ 305.285043] processor:CDP group:0, rdma_group:0 available
[ 305.287291] Enter: dla_read_config
[ 305.287664] Exit: dla_read_config
[ 305.287834] Exit: dla_prepare_operation status=0
[ 305.288103] Enter: dla_program_operation
[ 305.288286] Program CDP operation index 10 ROI 0 Group[0]
[ 305.288893] Enter: dla_cdp_program
[ 305.290346] Enter: processor_cdp_program

@prasshantg
Copy link

@fisherxue @ccshi please share full steps you are following to check which driver and test was used for it.

are you using docker image?

@shazib-summar
Copy link

shazib-summar commented Oct 5, 2019

@prasshantg , I, too, am facing the same problem. I used the out of the box drivers:drm.ko and opendla_1.ko driver inside the TOT/sw/prebuilt/linux/ directory.

The command I executed was

./nvdla_runtime --loadable ./sw/regression/flatbufs/kmd/NN/NN_L0_0_fbuf --image ./sw/regression/images/digits/seven.pgm --rawdump

And, yes, I am using the docker image.

Also, @sushilb270 and @ccshi, did you manage to resolve said issue? Do you have any updates?
Thanks a lot.

@neroangelo296
Copy link

@killerzula I am also having the same problem. Cant get even a single loadable file to complete inference successfully.
Please help me with this @prasshantg.

@Uspark-dev
Copy link

I have Resolve this issue . this issue is due to new release of vp image instead of using insmod opendla_2.ko please use this " insmod opendla_2.ko . below are complete steps to follow for Running inference on VP.

  1. sudo docker run -it -v /home:/home nvdla/vp

  2. cd /usr/local/nvdla

  3. cp -r /home/usis/sw /usr/local/nvdla

  4. export SC_SIGNAL_WRITE_CHECK=DISABLE

  5. aarch64_toplevel -c aarch64_nvdla.lua
    user name root
    password nvdla

  6. mount -t 9p -o trans=virtio r /mnt

  7. cd /mnt

  8. insmod drm.ko

  9. insmod opendla_2.ko

10)) ./nvdla_runtime --loadable ./sw/regression/flatbufs/kmd/NN/NN_L0_0_fbuf --imag
e ./sw/regression/images/digits/seven.pgm --rawdump

@tomenendal
Copy link

did anyone solve this issue?

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

No branches or pull requests

8 participants