BachiLi / diffvg

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

Windows -Can't compile in a cuda environment #33

Open bfrasure opened 3 years ago

bfrasure commented 3 years ago

Python version 3.7, Pytorch with Cuda (confirmed working), VS 2019 CMake installed. Cuda 10.0 - 10.2 installed from Nvidia site. I cannot compile diffvg library with Cuda enabled. I get this error every time: ptxas fatal : Unresolved extern function '_Z3powfi' diffvg.cpp CMake Error at diffvg_generated_diffvg.cpp.obj.Release.cmake:280 (message): Error generating file ......./build/temp.win-amd64-3.6/Release/CMakeFiles/diffvg.dir//Release/diffvg_generated_diffvg.cpp.obj

Edit: It looks like I need to make a few changes to the way drivers are referenced. I was able to get this working under linux for now.

thuangb commented 2 years ago

The problem is with the new cuda and visual studio 2019 is not compatible, try visual studio 2017 and/or old cuda version

bfrasure commented 2 years ago

Thanks, I'm running into issues targeting it for some reason even if I uninstall 2019. I'll keep trying.

Fris0uman commented 2 years ago

Using Cuda 10.2 and visual studio 2019 I'm getting exactly the same error.

kepurG commented 2 months ago

I spent days and nights to complete the diffvg compilation on Windows. If anyone wants the wheels, you can contact me +V13862010554. Let's create a group to communicate and exchange about the improvements based on the module together.