-
Notifications
You must be signed in to change notification settings - Fork 261
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
CUDA extremely slow on example where CPU is fast #18
Comments
Btw. CUDA seems to stuck on the |
Aha, found the problem. Apparently gradients do not support the "smart indexing" used in the for loops.
allows it to run on the gpu. |
This is strange, the example in the documentation suggest that smart indexing is the way to go: Also, from the documentation, then 2nd version of A small observation: You are using I am trying to get my head around the examples, so I cannot help much more but hope it points you out in the right direction. |
Hi @robertour . Thanks for your reply. I opened this issue back in February... I'm sure many things could have changed since then (e.g. |
First of all: cool library. I am trying to familiarize myself with it.
I tried to make just a simple example. This code makes an image with a black-white gradient,
and using a loss functions to darken the image.
It runs fast on cpu, but cannot even render the first frame on the GPU (using an RTX 2080 Ti). It keeps the GPU at 100 % utilization, but nothing happens. I can run other examples just fine on the GPU.
Are there any glaring misunderstandings that I have gotten?
Thank you in advance for your help.
The text was updated successfully, but these errors were encountered: