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

How would I include cuDNN? #4

Closed
helange23 opened this issue Dec 10, 2021 · 2 comments
Closed

How would I include cuDNN? #4

helange23 opened this issue Dec 10, 2021 · 2 comments

Comments

@helange23
Copy link

First of all, thank you very much for this. You have saved me tons of work and I am very grateful for the great documentation.

I would like to extend JAX with custom calls that internally make use of cudnn. For this I added an include at the top of "kernels.cc.cu". I tried both of the following:

#include <cudnn.h>
#include "/usr/include/cudnn.h"

The compiler finds the header and does not complain when I add the following host code:

  cudnnHandle_t handle_;
  cudnnCreate(&handle_);

However as soon as I try to run the code from JAX, I get the error that cudnnCreate is an undefined symbol. If I remove the includes then the compiler complains.

Do you have any idea how I could potentially fix this?

@dfm
Copy link
Owner

dfm commented Dec 11, 2021

It sounds like you'll need to edit the CMakeLists.txt file to link cudnn appropriately. I don't have any experience with this, so I'm not sure exactly what would be required, but that's the direction I would look!

@helange23
Copy link
Author

Thanks! I will have a look,

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