问题
I have a question: where should I using OpenCL data types? For what are us? Which are covered they?
回答1:
Some types are defined in the OpenCL C programming language, like int
, float4
, etc.
The corresponding types are defined in the host API with the cl_
prefix, like cl_int
, cl_float4
, etc. These types are used in the OpenCL API functions, and should be used to pass kernel arguments and compute the size of buffers for example.
来源:https://stackoverflow.com/questions/5963800/where-should-i-using-opencl-data-types