GithubHelp home page GithubHelp logo

superbo / micpy Goto Github PK

View Code? Open in Web Editor NEW
7.0 5.0 5.0 546 KB

modifed numpy that can run compute on Intel® Xeon Phi™ Knight Corner coprocessors

License: Other

Python 8.23% C 84.72% C++ 7.06%
numpy knights-corner

micpy's Introduction

Micpy

micpy is a modified version of numpy in order to run on Intel Xeon Phi Knights Corner coprocessors.

Compile and Installation

In order to compile micpy, you must have Intel C Compiler and Intel MKL installed on the host.

python setup.py build
python setup.py install

Usage

Below is an example of how to use micpy. Its usage is somewhat similar to original numpy.

import micpy

# Create two arrays that reside on MIC device memory
array_a = micpy.zeros((100,100), dtype=micpy.float32)
array_b = micpy.ones((100,100), dtype=micpy.float32)

# Some calculations
array_c = array_a + array_b
array_d = array_a * array_b

# Transfer data between host memory and MIC device memory
c = micpy.to_cpu(array_c)
c = array_c.to_cpu()
array_e = micpy.to_mic(c)

Current support API

TODO: update later

Benchmarks

TODO: update later

micpy's People

Contributors

superbo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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