Skip to content
/ micpy Public

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

License

Notifications You must be signed in to change notification settings

SuperBo/micpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published