BachiLi / diffvg

Differentiable Vector Graphics Rasterization
https://people.csail.mit.edu/tzumao/diffvg/
Apache License 2.0
954 stars 158 forks source link

Diffvg not compiled with GPU #41

Open AlonzoLeeeooo opened 2 years ago

AlonzoLeeeooo commented 2 years ago
image

During my debugging, I ran into this error. Does anyone know how to fix this? Thanks!

AlonzoLeeeooo commented 2 years ago

Issue solved. Set DIFFVG CUDA to 1 to make diffvg compiled on gpu.

Kiode commented 2 years ago

Hi, I meet this issue too. Could you teach me how to set DIFFVG CUDA to 1 in detail (in which file)?

ajmeese7 commented 2 years ago

@Kiode you do it when running the command, i.e. like the fol.lowing:

DIFFVG_CUDA=1 poetry run python setup.py install

So it is set in the environment of your terminal session.