I have updated my cuda version to 10.1 as well as visual studio 2017 to update 15.9.13 but the CUDA Samples 10.1 does not compile.
I got the following error message
165>C:/ProgramData/NVIDIA Corporation/CUDA Samples/v10.1/2_Graphics/simpleVulkan/vulkanCUDASinewave.cu(13): fatal error C1083: Cannot open include file: ‘GLFW/glfw3.h’: No such file or directory
There are other error messages but I did not put them here as they are pretty long but if needed, I can also put them here.
Does anyone have teh same issue or know how the resolve this issue ?
Here ismy environment:
Windows 10 64 bits
Visual Studio 2017 version 15.9.13
CUDA 10.1
GTX1080Ti
I have used MSVC for as long as it exists (decades) and I have never encountered this error message. Is 3150060 the line number where the error occurs in the source file? If so, that is a gigantic source file, which would explain the failed memory allocation. I would suggest reducing the size of that file.
Host code that is part of CUDA code is pre-processed before it gets sent to the host compiler (here: MSVC), which might explain a significant expansion. But I am not sure how that could result in 3 million lines of code in the intermediate source file passed to MSVC.
Since MSVS 2017 is a supported tool chain for CUDA 10.1, all examples shipping with CUDA have presumably been tested with that toolchain by NVIDIA. Maybe a recent incremental upgrade to CUDA or MSVS introduced a problem that was not there when CUDA 10 originally shipped, or something in your software setup is messed up.
If, after due-diligence checks, you conclude that the problem isn’t one of user or configuration error on your part, you may want to file a bug report with NVIDIA.
I found the problem. I did not realize that there is a single bin repository for all Visual Studio version, and when I switched from VS 2015 to VS 2017, I dit not perform a @clean before @Build Solution, but directly @Build solution.