dcompute icon indicating copy to clipboard operation
dcompute copied to clipboard

enum type size to match the definition in cl.h

Open takinutani opened this issue 4 weeks ago • 0 comments

Resolves #84

The third parameter of clGetDeviceInfo() requires specifying the size of the retrieved data. When retrieving enum type fields, the type size did not match the OpenCL specification. (Enum base type is int, whereas the OpenCL specification uses cl_ulong) Therefore, we were unable to obtain the correct information.

By aligning the enum base type with OpenCL types, we ensure that the correct values can be obtained.

takinutani avatar Dec 15 '25 15:12 takinutani