thunder-nyc / Thunder

Tensor for C++ 11
Apache License 2.0
38 stars 5 forks source link

Support OpenCL? <eoi> #1

Closed byzhang closed 10 years ago

zhangxiangxiao commented 10 years ago

It is planned after CPU and CUDA versions are done.

That being said, you can program an OpenCL allocator yourself and template Storage on it, so that you can have a Tensor type for OpenCL right away.

byzhang commented 10 years ago

Let's add some more justification. OpenCL is cross platform, so it could simplify the cpu code and gpu code to some extent. And OpenCL on CPU is usually comparable with OpenMP, and OpenCL on AMD is comparable with Cuda on Nvidia.

byzhang commented 10 years ago

@zhangxiangxiao , thanks for the answer. Any eta on timeline? And is expression template in your plan?

zhangxiangxiao commented 10 years ago

No I current do not want to do expression template in the library. But I do want to add Tensor imports/exports for libraries like Eigen3 and uBLAS so that you can use expression template by yourself.