Giter VIP home page Giter VIP logo

Comments (7)

fisherxue avatar fisherxue commented on August 11, 2024 3

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.

from vp.

ccshi avatar ccshi commented on August 11, 2024 2

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

from vp.

prasshantg avatar prasshantg commented on August 11, 2024

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

are you using docker image?

from vp.

shazib-summar avatar shazib-summar commented on August 11, 2024

@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.

from vp.

neroangelo296 avatar neroangelo296 commented on August 11, 2024

@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.

from vp.

Uspark-dev avatar Uspark-dev commented on August 11, 2024

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

from vp.

tomenendal avatar tomenendal commented on August 11, 2024

did anyone solve this issue?

from vp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.