Git Product home page Git Product logo

numba's Introduction

Numba with PyDPPL

1. What?

DPPL proof-of-concept backend for NUMBA to support compilation for Intel CPU and GPU architectures. The present implementation of DPPL is based on OpenCL 2.1, but is likely to change in the future to rely on Sycl/DPC++ or Intel Level-0 driver API.

2. Prequisites?

  • Bash : In the system and not as default Shell
  • Tar : To extract files
  • Git : To fetch required dependencies listed below
  • C/C++ compiler : To build the dependencies
  • Cmake : For managing build process of dependencies
  • Python3 : Version 3 is required
  • Conda or miniconda : Can be found at https://docs.conda.io/en/latest/miniconda.html
  • OpenCL 2.1 driver : DPPL currently works for both Intel GPUs and CPUs is a correct OpenCL driver version is found on the system.

Note. To use the GPU users should be added to "video" user group on Linux systems.

The following requisites will need to be present in the system. Refer to next section for more details.

  • NUMBA v0.50 : The DPPL backend has only been tested for NUMBA v0.50. The included install script downloads and applies the DDPy patch to the correct NUMBA version.
  • LLVM-SPIRV translator: Used for SPIRV generation from LLVM IR.
  • LLVMDEV : To support LLVM IR generation.
  • Others : All existing dependecies for NUMBA, such as llvmlite, also apply to DPPL.

3. How to install?

Install Pre-requisites

Make sure the following dependencies of NUMBA-PyDPPL are installed in your conda environemtn:

  • llvmlite =0.33
  • pydppl =0.2
  • spirv-tools
  • llvm-spirv
  • llvmdev

Make sure the dependencies are installed with consistent version of LLVM 10.

Install PyDPPL backend

NUMBA-PyDPPL also depend on PyDPPL backend. It can be found here. Please run build_for_develop.sh to install PyDPPL backend in development mode or install PyDPPL from package.

Install NUMBA-PyDPPL

After all the dependencies are installed please run build_for_develop.sh to get a local installation of NUMBA-PyDPPL.

4. Running tests

To make sure the installation was successful, try running the examples and the test suite:

$PATH_TO_NUMBA-PyDPPL/numba/dppl/examples/

To run the test suite execute the following:

`bash python -m numba.runtests numba.dppl.tests `

5. How Tos and Known Issues

Refer the HowTo.rst guide for an overview of the programming semantics, examples, supported functionalities, and known issues.

  • Installing while Intel OneAPI basekit is actvated have shown to throw error

while installation of NUMBA-PyDPPL because of incompatible TBB interface, one way around that is to temporaily move env variable TBBROOT to something else*

6. Reporting issues

Please use https://github.com/IntelPython/numba/issues to report issues and bugs.

numba's People

Contributors

sklam avatar pitrou avatar markflorisson avatar stuartarchibald avatar seibert avatar drtodd13 avatar rjenc29 avatar esc avatar gmarkall avatar jayvius avatar diptorupd avatar asmeurer avatar reazulhoque avatar teoliphant avatar luk-f-a avatar densmirn avatar guilhermeleobas avatar njwhite avatar stefanseefeld avatar hgrecco avatar pearu avatar meawoppl avatar jrbourbeau avatar epronovost avatar anton-malakhov avatar laserson avatar ivirshup avatar partmor avatar rubtsowa avatar rohitsanj 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.