Why OpenCL doesn't have matrix data type? -
considering opencl kernels executed on same units shaders seem logical me opencl have same data types glsl, yet looking here: http://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/datatypes.html don't see matrix type.
why that?
also, mean if want multiply 4x4 matrices slower when using opencl glsl?
actually, if @ link more closely there matrix data types in category of reserved datatypes: floatnxm, doublenxm. quite there implementation types in future releases of standard. have no idea why haven't done already.
at point can use either array or image2d_t represent matrices. want take @ article
what comes speed. doesn't mean opencl slower, quite likely. if manage write perfect matrix multiplication code 1 platform opencl, in other platform performance can quite poor. in opengl, manufacturers writing own matrix multiplication code should quite optimal each platform.
Comments
Post a Comment