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

neubig opened this Issue Mar 26, 2017 · 5 comments


None yet
3 participants

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:™-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


This comment has been minimized.


neubig commented Apr 16, 2017

Cool, it looks like the OpenCL support has been integrated in the Eigen upstream:

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.


This comment has been minimized.


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


This comment has been minimized.

dseddah commented Sep 18, 2018

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


This comment has been minimized.


neubig commented Sep 19, 2018

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


This comment has been minimized.


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