Where should I using OpenCL data types?

隐身守侯 提交于 2020-01-07 04:25:13

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!