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

PixelDraw Colab throws cudaErrorInvalidDeviceFunction #33

Open
rockt opened this issue Nov 3, 2021 · 6 comments
Open

PixelDraw Colab throws cudaErrorInvalidDeviceFunction #33

rockt opened this issue Nov 3, 2021 · 6 comments

Comments

@rockt
Copy link

rockt commented Nov 3, 2021

Hi, I created a copy of the PixelDraw colab, run the setup (which was successful) but then ran into the following error when running the 2nd cell.

ops: runtime error:  radix_sort: failed on 1st step: cudaErrorInvalidDeviceFunction: invalid device function
Try reducing --num-cuts to save memory
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-2-df7ac889ea98> in <module>()
     45 settings = pixray.apply_settings()
     46 pixray.do_init(settings)
---> 47 pixray.do_run(settings)

6 frames
/usr/local/lib/python3.7/dist-packages/diffvg-0.0.1-py3.7-linux-x86_64.egg/pydiffvg/render_pytorch.py in backward(ctx, grad_img)
    707                       use_prefiltering,
    708                       diffvg.float_ptr(eval_positions.data_ptr()),
--> 709                       eval_positions.shape[0])
    710         time_elapsed = time.time() - start
    711         global print_timing

RuntimeError: radix_sort: failed on 1st step: cudaErrorInvalidDeviceFunction: invalid device function

Have you seen this before?

@dribnet
Copy link
Owner

dribnet commented Nov 3, 2021

did you also restart the runtime after running the setup cell?
Screen Shot 2021-11-04 at 2 09 31 AM

@rockt
Copy link
Author

rockt commented Nov 3, 2021

Yes, I did. I got "setup complete" before running the next cell.

@dribnet
Copy link
Owner

dribnet commented Nov 3, 2021

Not sure. The notebook is currently working fine for me.

@marcelo313
Copy link

I believe they don't have enough memory, I was using the free version of colab and got the same error. After upgrading it ran successfully.

@NTaya
Copy link

NTaya commented Nov 6, 2021

Same. I have 16 GB available memory (I use the Pro version of Colab), restart the runtime (this is not my first time using PixelDraw; the first cell says "setup complete") and yet most of the times get this error in the notebook nonetheless.
It worked fine for me ~50 days ago in the very same notebook, but now fails.
Notebook link.

It sometimes works out of nowhere after I restart the runtime a few times (>=3 times), but it often doesn't work by default.

@GinYoshida
Copy link

I faced the same error and I did the following process.

Step1: Changed my plan from Free to Pro
Step2: Runtime => Change runtime type => Runtime shape => "High-RAM" => Restart the runtime

It is working now.

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

5 participants