mshadow
mshadow copied to clipboard
[Discussion] OpenCL support
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
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
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.
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.
I've just come across SyCL - C++ templating on top of OpenCL. Might be useful?
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
Eigen Tensor was gone in SyCL direction
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.