Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
OpenCL がインライン関数をサポートしていることは知っていますが、それらの関数は OpenCL 型を受け入れて返すことができますか?
具体的には、次のシグネチャを持つ何かに興味があります: float4 func(float4 x, float4 y)
はい、ほとんどの GPU では、指定しなくてもすべての関数がインライン化されます。
カーネル関数のみが void である特定の戻り値の型を持ちます。その他の関数は、有効な OpenCL 型を返すことができます。