Code Monkey home page Code Monkey logo

cnn-on-flash's Introduction

CNN-on-flash

The goal of this project is to run Convolutional Neural Network layers for flash-resident-matrices. Now gemm using NEON for ARM CPU is implemented.

References

This project is implemented based on BLAS-on-flash and run using Arm Compute Library.

Requirements

  • Ubuntu 16.04
  • Arm Compute Library 19.02
    • built with neon option turned on

Setting options

Set CMakeFiles options as you want.

vim CMakeFiles
  • PROGRAM_BUDGET Memory budget of the gemm with byte size
  • GEMM_BLK_SIZE The number of rows and cols of submatrices
  • N_IO_THR The number of IO threads
  • N_COMPUTE_THR The number of compute threads

Build instructions

  • git clone
  • vim CMakeLists.txt
    • modify set (ACL_ROOT [arm_compute_library_path])
  • mkdir bin && cd bin
  • cmake ..
  • make
  • cd ..

Execution

gemm execution

  • cd misc
  • chmod +x gemm.sh
  • ./exec.sh [A_row] [B_row] [B_col]

Example experiment result

Example case with

  • size of inputs and output matrices = 4096x4096
  • GEMM_BLK_SIZE = 512
  • and various memory budget
  • run on Odroid-XU4 having Exynos5422 Inference time and maximum memory usage is shown on following graph.

imagename

More detailed explanation for method and results can be found in BLAS-on-flash paper and this paper.

License

CNN-on-flash is open-sourced software licensed under the MIT license.

cnn-on-flash's People

Contributors

gh-jo avatar

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.