Skip to content

giabattag/opencl-interface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenCL Interface

OpenCL Interface: run custom OpenCL (and CUDA) kernels and neural networks converted from ONNX format.

Features

  • Platform-agnostic OpenCL compilation with PyOpenCL
  • Supported numerical formats: single, double, quantized fixed-precision, posit
  • [Beta] ONNX model conversion using onnx2ocl module
  • [Beta] Seamless CUDA compilation with nvcc with respect to OpenCL-written kernel (i.e., no modification of original OpenCL code)

Install

From Pypi:

pip install opencl-interface

From Github:

git clone git@github.com:giabattag/opencl-interface.git
cd opencl-interface
pip install -e .

Requirements:

  • python >= 3.8
  • numpy
  • onnx
  • onnxsim
  • [Optional] pyopencl
  • [Optional] pycuda

Quick start

You can try looking at the file example.py.

Contributing

Contributions are welcome via Pull Requests or in form of Issues.

License

This project is licensed under MIT License.

Citation

Please cite this project using CITATION.cff.

About

Python interface for OpenCL, with conversion from ONNX.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors