Giter Site home page Giter Site logo

mixed-precision-dl-public's Introduction

Mixed Precision Deep Learning Algorithm Development and Optimization

This repo contains a starting template for developing and optimizing mixed-precision Deep Learning algorithms for IoT, ML/DL/RL, SDR, and DSP applications that can be deployed on custom hardware accelerators while at the same time having an efficient collaboration with the host CPU.

Once you use this template, you will need to adjust the status badges below to point to your repo.

System Status More information
FOSSA Status FOSSA Status Open-source license dependency scanner Stillwater Universal
GitHub Actions Build Status Latest Linux/MacOS/Windows builds and regression tests

How to build

This repo uses git submodules. The first step after pulling the repository is to configure the submodules:

> git submodule init && git submodule update

After that, the repo is ready to be build:

> mkdir build
> cd build
> cmake ..
> make

This will build the libraries, the CLI command projects, and the tests in test/mpir_tests.

When using VSCode, the repository contains a devcontainer spec in the directory $MPIR_ROOT/.devcontainer.

VS code environment

The default container provides a build environment based on Clang14:

{
	"image": "stillwater/universal:clang14builder"
}

There is a set of builders that can be used that contain specific compilers. Other environments are:

gcc9builder
gcc10builder
gcc11builder
gcc12builder
clang11builder
clang12builder
clang13builder
clang14builder

If you want to change your development container, simply replace the json with the container of your choice.

You can also build natively. The .gitignore of this repo filters out the following directories:

build/
build_msvc/
build_gcc/
build_clang/

You can use these build directories to organize your native and specific build containers so that they can run concurrently. For example, you can use the build/ directory to hold native builds, and build_gcc/ directory to hold the default build container builds.

Install command line tools, libraries, and include files

To install the command line tools for ease of use, issue the install target:

> make install

This command will populate the $MPIR_ROOT/bin, $MPIR_ROOT/lib, and $MPIR_ROOT/include directories, where $MPIR_ROOT represents the directory path of the mixed-precision-ir repository clone.

If you are on a Linux or MacOS system, you can add the bin directory to your path to pick up the command line tools:

> export PATH=$PATH:$MPIR_ROOT/bin

For Windows, use the environment variable editor to do the same.

Streamlining the Build

To just build the projects in mixed-precision-ir and ignore build targets in Universal and MTL4, use:

> cmake -DBUILD_DEMONSTRATION=OFF -DENABLE_TESTS=OFF ..

Updating the submodules

If you want to update the submodules to the latest version of the upstream repos, issue this command:

> git submodule update --remote --merge

Project structure

The following figure shows the project structure of this repository:

Project Structure

mixed-precision-dl-public's People

Contributors

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