Giter Club home page Giter Club logo

ape's Introduction

APE

This is a project to investigate the feasibility of statically scheduling array primitive operations onto heterogeneous hardware.

Scheduling is hard. It is difficult to

  • predict runtimes
  • predict communication times
  • support operations on heterogeneous hardware
  • find an optimal schedule (this is NP-Hard)

We pose that these problems become managable under a highly reduced and very structured set of allowable operations. In particular we consider array operations as such a set. This is because they

  • are highly predictable (once problem sizes exceed the cache)
  • are easy to model
  • can express many scientific programs with little complexity (NP-Hard problems become feasible)
  • Present a uniform interface to heterogeneous hardware (I.e. we have both a CPU and GPU BLAS)

Technology

Interface

This project builds off of the Theano project. Theano presents a MatLab or NumPy style vectorized language to the user. I.e.

y = x[:,0].sum()

But instead of performing computations directly it builds up a graph. This graph is what we choose to schedule.

Scheduling

Currently our scheduling backend is built off of integer programming and, if it terminates, provides optimal solutions. You can read more about it here. APE depends on this repository.

We also plan to build in a heuristic backend based around the HEFT algorithm.

Communication

We communicate code using a network file system.

We communicate at runtime using mpi4py.

Local Execution

For local execution we again depend on Theano. Theano provides implementations for many array operations on both CPUs and GPUs, allowing us separate this scheduling work from orthogonal work in many-core computing.

What we produce

This project takes

  • Theano input code like the example above (specifically we want a theano.
    FunctionGraph)
  • Functions to estimate the cost of running and communicating operations on various machines in your network
  • Sizes of all inputs in your code

and produces

  • a file, env.dat which contains compilable theano objects
  • an orchestrating .py file that you can run with mpiexec/mpirun

Look at ape/example.py and ape/master.py for an example.

Status

This project is not functional. You should not use it.

Author

Matthew Rocklin

ape's People

Contributors

mrocklin avatar

Watchers

 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.