-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation error: cannot open input file 'stdc++.lib' #13
Comments
Actually, by copying the files from C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\extras\visual_studio_integration\MSBuildExtensions to C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations I was able to fix the previous issue. However it's now failing with the following error: cannot open input file 'stc++.lib'. Any idea what's wrong? ' CUDA_ARCHITECTURES is empty for target "osqpstatic". CMake Warning (dev) in CMakeLists.txt: CUDA_ARCHITECTURES is empty for target "osqpstatic". CMake Warning (dev) in CMakeLists.txt: CUDA_ARCHITECTURES is empty for target "osqpstatic". CMake Warning (dev) in CMakeLists.txt: CUDA_ARCHITECTURES is empty for target "osqpstatic". CMake Warning (dev) in algebra/CMakeLists.txt: CUDA_ARCHITECTURES is empty for target "osqp_algebra". CMake Warning (dev) in algebra/CMakeLists.txt: CUDA_ARCHITECTURES is empty for target "osqp_algebra". CMake Warning (dev) in algebra/CMakeLists.txt: CUDA_ARCHITECTURES is empty for target "osqp_algebra". CMake Warning (dev) in algebra/CMakeLists.txt: CUDA_ARCHITECTURES is empty for target "osqp_algebra". CMake Warning (dev) in lin_sys/cuda/cuda_pcg/CMakeLists.txt: CUDA_ARCHITECTURES is empty for target "linsys_cuda_pcg". CMake Warning (dev) in lin_sys/cuda/cuda_pcg/CMakeLists.txt: CUDA_ARCHITECTURES is empty for target "linsys_cuda_pcg". CMake Warning (dev) in lin_sys/cuda/cuda_pcg/CMakeLists.txt: CUDA_ARCHITECTURES is empty for target "linsys_cuda_pcg". CMake Warning (dev) in lin_sys/cuda/cuda_pcg/CMakeLists.txt: CUDA_ARCHITECTURES is empty for target "linsys_cuda_pcg". -- Generating done Checking Build System C:\Users\mercury1492\PycharmProjects\cuosqp\osqp_sources\build\lin_sys\cuda\cuda_pcg>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\nvcc.exe" --use-local-env -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC C:\Users\mercury1492\PycharmProjects\cuosqp\osqp_sources\build\algebra>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\nvcc.exe" --use-local-env -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\b C:\Users\mercury1492\PycharmProjects\cuosqp\osqp_sources\build\algebra>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\nvcc.exe" --use-local-env -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\b C:\Users\mercury1492\PycharmProjects\cuosqp\osqp_sources\build\algebra>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\nvcc.exe" --use-local-env -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\b C:\Users\mercury1492\PycharmProjects\cuosqp\osqp_sources\build\algebra>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\nvcc.exe" --use-local-env -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\b C:\Users\mercury1492\PycharmProjects\cuosqp\osqp_sources\build\algebra>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\nvcc.exe" --use-local-env -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\b C:\Users\mercury1492\PycharmProjects\cuosqp\osqp_sources\build\algebra>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\nvcc.exe" --use-local-env -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\b ' |
I can make it compile by removing stdc++ in setup.py (however, unittests don't pass, see #14 although that's probably unrelated) |
Hi, I am not able to install cuosqp as install can't find CUDA tool kit (even though I've installed it). I've tried CUDA 11 and 12, and I am using the last version of CMake (3.25.1)
After following this link, I have tried reinstalling VS, CUDA toolkit, CMake many times, with no success.
It may be that Nvidia cuda installer has some issues with installing the VS integration with VS 2017. Is it possible to support a more recent version of Visual Studio? Any suggestions? Thanks.
The text was updated successfully, but these errors were encountered: