diffvg icon indicating copy to clipboard operation
diffvg copied to clipboard

Windows -Can't compile in a cuda environment

Open bfrasure opened this issue 3 years ago • 4 comments

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.

bfrasure avatar Oct 07 '21 03:10 bfrasure

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

thuangb avatar Nov 07 '21 14:11 thuangb

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

bfrasure avatar Nov 07 '21 21:11 bfrasure

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

Fris0uman avatar Mar 12 '22 08:03 Fris0uman