Coder Social home page Coder Social logo

Conv C code compilation error about barvinn HOT 7 CLOSED

schegde avatar schegde commented on August 29, 2024
Conv C code compilation error

from barvinn.

Comments (7)

hossein1387 avatar hossein1387 commented on August 29, 2024 1

oops, I meant input size is 1x64x32x32. And yes, you can use MVU_Code_gen to generate weights and input necessary for the conv_tester.sv.

from barvinn.

hossein1387 avatar hossein1387 commented on August 29, 2024

Could you please confirm on which branch of Pito/BARVINN and MVU you are?

from barvinn.

schegde avatar schegde commented on August 29, 2024

I am currently on origin/master <-> 3649e73 for BARVINN ; origin/master <-> 5e24521b for PITO_RISCV ; and aff7d9d4 for MVU

from barvinn.

hossein1387 avatar hossein1387 commented on August 29, 2024

I am in the process of adding a memory subsystem to BARVINN and our first FPGA target is ALVEO U200. The DMA engine is under construction and the code you see is a left over of this development.

If you just want to try a simple Conv kernel on BARVINN, you can comment line 46 and 54 and the code will perform a Convolution between an input of size 1x3x32x32 and weight size of 64x64x3x3. The computation is divided between 8 MVUs. This code assumes that the data is already prepared in the correct format in input and weight buffers. The purpose of the DMA calls is actually to request the host to send over data in the correct format for the computation.

To use DMA engine and the host, you can follow my work on mem_sub_system branch on Pito. I should have some results soon.

from barvinn.

schegde avatar schegde commented on August 29, 2024

Ahh, I see that makes sense. Thanks for the added clarification about the the DMA engine part being under construction. Sorry for the confusion, you had mentioned about that in #20 . With the lines commented, I am able to generate the firmware files!. I will give a try with full BARVINN simulation now.

from barvinn.

hossein1387 avatar hossein1387 commented on August 29, 2024

Awesome! let me know if you have more questions!

from barvinn.

schegde avatar schegde commented on August 29, 2024

Sorry, needed a bit more clarification. You mentioned the csrc/conv2d.c will do 3x32x32 input with 64x64x3x3 weight. Shouldn't the weights be 3x64x3x3 since we only have 3 input channels? Also for preparing the input and weight RAMs , I can use the MVU_Code_gen repository to generate the weight.hex and input.hex necessary for the conv_tester.sv simulation, right?

from barvinn.

Related Issues (15)

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.