Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Bool and Char arrays with the CUDA backend #4

Closed
mchakravarty opened this issue Apr 17, 2011 · 3 comments
Closed

No Bool and Char arrays with the CUDA backend #4

mchakravarty opened this issue Apr 17, 2011 · 3 comments
Assignees
Labels
cuda backend [deprecated]

Comments

@mchakravarty
Copy link
Member

The CUDA backend can currently not handle arrays that contain elements of typeBool or Char. In D.A.A.Array.Data, see the instance declarations for ArrayElem Bool and ArrayElem Char for details.

@ghost ghost assigned mchakravarty Apr 17, 2011
@mchakravarty
Copy link
Member Author

@tmcdonell Let's get to the ground of this restriction. In the .cabal file for the CUDA backend, you wrote that this restriction is a frontend issue, but I don't think so. Bool and Char are perfectly fine in the interpreter.

Have a look at the comment in D.A.A.Array.Data (https://github.com/AccelerateHS/accelerate/blob/master/Data/Array/Accelerate/Array/Data.hs#L310 and https://github.com/AccelerateHS/accelerate/blob/master/Data/Array/Accelerate/Array/Data.hs#L327). This is all just about the ptrsOfArrayData function that is needed for the backend.

@tmcdonell
Copy link
Member

Relevant commits:

@mchakravarty
Copy link
Member Author

Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuda backend [deprecated]
Projects
None yet
Development

No branches or pull requests

2 participants