vcg-uvic / viper

Open-source code for VIPER -- Volume Invariant Position-based Elastic Rods
Apache License 2.0
903 stars 105 forks source link

Fails compilation of Scene.cu #15

Closed iqch closed 2 years ago

iqch commented 2 years ago

Converting project to be used with Win10/MSVS2019/CUDA11.3 system leads to crash compiling this source Boost 1.76.0 latest GLEW/GLFW Eigen 3.4.0 CGAL 5.3

Error MSB3722 cmdline F:\SDK\NVIDIA\Develop\bin\nvcc.exe -gencode=arch=compute_52,code=\"sm_52,compute_52\" --use-local-env -ccbin "F:\App\MSVC2019\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64" -x cu -IF:\SDK\Eigen\3.4.0 -IF:\SDK\CGAL\5.3\include -IF:\SDK\CGAL\5.3\include -If:\SDK\boost\1.76.0 -IF:\SDK\NVIDIA\Develop\include --keep-dir x64\Release -maxrregcount=0 --machine 64 --compile -cudart static --extended-lambda --expt-relaxed-constexpr -DWIN32 -DWIN64 -DNDEBUG -D_CONSOLE -D_WINDLL -D_MBCS -Xcompiler "/EHsc /W3 /nologo /O2 /Fdx64\Release\vc142.pdb /FS /MD " -o x64\Release\Scene.cu.obj F:\Projects\Viper\Viper\Scene.cu

'cicc' died with status 0xC0000005 (ACCESS_VIOLATION)

making this source C++ compiled - pass succesfully

iqch commented 2 years ago

Solved by eliminating CGAL-depended code.

//#include "nnsearch.h"