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 #405

Open
neubig opened this Issue Mar 26, 2017 · 5 comments

Comments

Projects
None yet
3 participants
@neubig
Contributor

neubig commented Mar 26, 2017

It would be nice if DyNet supported OpenCL in addition to CUDA. Recently, Eigen is moving in the direction of supporting OpenCL which would make this much more realistic: https://www.codeplay.com/portal/tensorflow™-for-opencl™-using-sycl™

However, this would still require a major engineering effort, so this issue would need a champion who really wants to see it get done. We're happy to have contributions!

@neubig neubig added the enhancement label Mar 26, 2017

@neubig

This comment has been minimized.

Contributor

neubig commented Apr 16, 2017

Cool, it looks like the OpenCL support has been integrated in the Eigen upstream:
https://github.com/RLovelett/eigen/blob/master/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h

DyNet's current setup still has a lot of code based on "CPU or CUDA" as opposed to "choose your device", but with a bit of engineering we should be able to resolve this and make OpenCL an option.

@neubig

This comment has been minimized.

Contributor

neubig commented Aug 25, 2017

Now that multi-device support is active this might be possible (CC: @xunzhang )?

@xunzhang xunzhang self-assigned this Sep 2, 2017

@dseddah

This comment has been minimized.

dseddah commented Sep 18, 2018

Hi Graham,
do you know if someone has ever tried dynet with opencl ?

@neubig

This comment has been minimized.

Contributor

neubig commented Sep 19, 2018

AFAIK, no. If someone's interested we'd be very happy to have a PR though.

@xunzhang

This comment has been minimized.

Collaborator

xunzhang commented Sep 19, 2018

not yet, welcome PR and discussion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment