accelerate icon indicating copy to clipboard operation
accelerate copied to clipboard

cuDNN support?

Open jhoxray opened this issue 8 years ago • 2 comments

I am submitting a...

  • [ ] bug report
  • [x] feature request
  • [ ] support request => you might also like to ask your question on the mailing list or gitter chat.

Description

Hi! My apologies if this is not the right place to ask, but are there any plans to extend Accelerate to support not just CUDA but also cuDNN library to make it more efficient for deep learning tasks? Has there any work been done on the topic? We are considering getting into this, but since Accelerate is so good working with CUDA trying to understand the state of things first. Thank you!

  • Jay

jhoxray avatar Apr 05 '18 13:04 jhoxray

Hi Jay!

I currently don't have any specific plans to add cuDNN interoperability myself, but I believe everything that would be required is in there (e.g. support for float-16, packed (AoS) arrays).

I think the process would be similar to the implementation of, e.g. the accelerate-fft and accelerate-blas libraries. The first step is writing the raw FFI bindings (cufft, cublas, respectively), which can then be wrapped into an API usable from Accelerate. I could help you out of course.

Depending on how you plan to use Accelerate together with cuDNN (e.g. at the start/end of a long cuDNN pipeline vs. intermixed between cuDNN steps) probably affects how much work needs to be put into that second step. I haven't used cuDNN myself so I'm not sure where the most important points are.

Cheers!

tmcdonell avatar Apr 06 '18 00:04 tmcdonell

Trevor, thanks a lot, this helps clarify this! If we get to the Accelerate integration step will ping :)

jhoxray avatar Apr 07 '18 12:04 jhoxray