clGetDeviceInfo always fails #1

Open
zhensydow opened this Issue May 10, 2011 · 0 comments

Projects

None yet

1 participant

@zhensydow

First, thanks for the OpenCLRaw library.

I'm using it in a project and i found a error. When I call clGetDeviceInfo function, it always fail. I think the problem is the function wrapGetInfo check for Just clSuccess, but when the call is a succes wrapError returns Nothing. It's possible the functions have a bad signature, eg: instead of:

wrapError :: IO CLint -> IO (Maybe ErrorCode)

It's possible to use directly, because clSuccess is a ErrorCode also:

wrapError :: IO CLint -> IO ErrorCode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment