mshadow icon indicating copy to clipboard operation
mshadow copied to clipboard

[Discussion] OpenCL support

Open antinucleon opened this issue 10 years ago • 7 comments

I notice Android supports OpenCL, which will bring great benefit.

Let's discuss how much work need to be done to make mshadow support OpenCL

@mli @tqchen @piiswrong

antinucleon avatar Nov 02 '15 17:11 antinucleon

Before fully investigation, I think we need to change:

  • [ ] base.h
  • [ ] stream_gpu-inl.h
  • [ ] tensor_gpu-inl.h
  • [ ] reduce.cuh
  • [ ] tensor_gpu-inl.cuh

antinucleon avatar Nov 02 '15 17:11 antinucleon

For current OpenCL, this will means switch the expression template to be a code generation system that generate strings (opencl code) which can be compiled send to opencl C++ API.

tqchen avatar Nov 02 '15 18:11 tqchen

I think we'd also make change to cl memory/ buffer stuff, which I need to do more investigation. On Mon, Nov 2, 2015 at 11:03 Tianqi Chen [email protected] wrote:

For current OpenCL, this will means switch the expression template to be a code generation system that generate strings (opencl code) which can be compiled send to opencl C++ API.

— Reply to this email directly or view it on GitHub https://github.com/dmlc/mshadow/issues/71#issuecomment-153103289.

antinucleon avatar Nov 02 '15 18:11 antinucleon

I've just come across SyCL - C++ templating on top of OpenCL. Might be useful?

paulheideman avatar Jan 24 '16 15:01 paulheideman

OpenCL 2.2 now support a C++ as a kernel language, that should make it a lot easier to implement support. https://github.com/KhronosGroup/SPIR/tree/spirv-1.1#step-6-creating-spir-v-binaries

vchuravy avatar Sep 01 '16 19:09 vchuravy

Eigen Tensor was gone in SyCL direction

bhack avatar Nov 09 '16 15:11 bhack

This code base has been donated to the Apache MXNet project per #373, and repo is deprecated. Future development and issue tracking should continue in Apache MXNet.

szha avatar Aug 04 '19 00:08 szha