Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

clGetDeviceInfo always fails #1

Open
zhensydow opened this Issue · 0 comments

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
Something went wrong with that request. Please try again.