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? #1

Open
cathalgarvey opened this issue Oct 31, 2016 · 2 comments
Open

OpenCL? #1

cathalgarvey opened this issue Oct 31, 2016 · 2 comments

Comments

@cathalgarvey
Copy link

Very neat and tidy code!

It looks like adding OpenCL support to this wouldn't take much effort, though I'm still so early at this that I'm not comfortable offering a PR yet; have you any familiarity with torchcl and clnn?

Advantage: newcomers (who seem to be the target audience) can use CPU integrated graphics to train, and can scale with much, much cheaper GPUs with similar performance. The CPU Graphics angle makes it more suitable for workshop/teaching use, where people will bring laptops and are unlikely to have nVidia GPUs.

@cathalgarvey
Copy link
Author

The difference, as far as I know so far, is simply that for OpenCL you import torchcl and clnn, and then wherever you'd call :cuda() you instead call :cl(). Really it'd be cool to up-stream something to torch itself, so that you could just call :gpu() and have it try loading either way..

@cvondrick
Copy link
Owner

It would be great to have a fork of torch-starter for OpenCL!

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

2 participants