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

OpenCL support #55

Closed
ghost opened this issue Feb 25, 2018 · 6 comments
Closed

OpenCL support #55

ghost opened this issue Feb 25, 2018 · 6 comments

Comments

@ghost
Copy link

ghost commented Feb 25, 2018

I know its too much to ask, but can i expect OpenCL support for AMD/nVidia gpu cards?

I think haskell is best for pretty much anything, so I wish to have a haskell library that supports gpu computations and can ease the level of experimentation/research that I can do with neural nets!

TL, DR: Can grenade provide me performance on par with PyTorch using GPU?

@rehno-lindeque
Copy link

I'm not a contributor but I noticed there's this effort to provide an accelerate implementation: #38

And, as far as AMD hardware goes, this seems to be the state of things at the moment: https://www.reddit.com/r/haskell/comments/4ehggz/accelerate_library_and_opencl/d20z05p/

@HuwCampbell
Copy link
Owner

At the moment, grenade's numerical capabilities are provided through hmatrix. So its BLAS operations are determined by what hmatrix supports. Now hmatrix can support a few different BLAS backends, so I don't think it's unfeasible that CUDA or OpenCL could be supported through that path.

There has been an attempt at an accelerate addition, but it has stalled. I had a chat to Trevor about it and we thought that the particular approach wasn't quite right. I think there's more upfront and explicit design required on that front before we try again.

@doofin
Copy link

doofin commented Mar 1, 2018

@HuwCampbell Do you mean that if hmatrix supports gpu backend then it's done?

@HuwCampbell
Copy link
Owner

That could be one path. I know hmatrix can use different BLAS backends, so I don't think it would be impossible.

Really, TBH, I think haskell could use a new, really solid NDArray library. hmatrix is pretty good but it's support for 3D and 4D matrices is poor.

I might close this issue and there's nothing currently actionable to it. But feel free to continue the conversation.

@doofin
Copy link

doofin commented Mar 1, 2018

@HuwCampbell Currently are there any new NDArray library that we can work with?

@ghost
Copy link
Author

ghost commented Mar 2, 2018

I read few other issues, and above provided reddit thread, it seems Trevor agreed to get things done. Hopefully, accelerate would find required manpower to develop an OpenCL backend, someday. TBH, at one point, I thought of getting into literature of heterogenous parallel programming and getting it done myself, but then it all costs time.

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

No branches or pull requests

3 participants