Home

Awesome

Matlab-OpenCL

License

OpenCL kernel support to emulate CUDA kernel support in MATLAB

This project provides an interface to run OpenCL kernels analagously to CUDA kernels provided by the Parallel Computing Toolbox in MATLAB. The API emulates the analagous classes in MATLAB to maximize code re-use while allowing for architectural differences in OpenCL.

NativeMatlab-OpenCL
parallel.gpu.CUDAKerneloclKernel
gpuDeviceoclDevice
gpuDeviceCountoclDeviceCount
gpuDeviceTableoclDeviceTable

Requirements

Quick Start

  1. Download the repository and its submodules
git clone --recurse-submodules https://github.com:thorstone25/Matlab-OpenCL.git
  1. Open the Project in MATLAB
>> cd Matlab-OpenCL;
>> openProject MatlabOpenCL.prj;
  1. Run the example script
>> addpath examples;
>> img_test_mocl;

Documentation

Further documentation is provided internally via help and doc, e.g. >> doc oclKernel.