Skip to content

PixelDraw Colab throws cudaErrorInvalidDeviceFunction #33

Open

Description

@rockt

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?

Activity

  1. dribnet commented on Nov 3, 2021

    @dribnet
    Owner

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

  2. rockt commented on Nov 3, 2021

    @rockt
    Author

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

  3. dribnet commented on Nov 3, 2021

    @dribnet
    Owner

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

  4. marcelo313 commented on Nov 6, 2021

    @marcelo313

    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.

  5. NTaya commented on Nov 6, 2021

    @NTaya

    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.

  6. GinYoshida commented on Jan 3, 2022

    @GinYoshida

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions