Unlike many cross-platform systems, CMake is designed to be used in conjunction with the native build environment. Never got the compiler this far.CMake is an extensible, open-source system that manages the build process in an operating system and in a compiler-independent manner. # My code requires C 11 for the CUDA library, not sure which ones of these So I have reformatted my 'CMakeLists.txt' file to the following based on this: cmake_minimum_required(VERSION 3.8 FATAL_ERROR) However, it is my understanding that the latest Cmake does not properly support the old method anymore and that cuda_add_libraryetc don't properly link anymore. When using the old deprecated Cmake CUDA support of using find_package(CUDA 10.1 REQUIRED) it correctly reports the correct path to the toolkit when using it. However, I've been struggling with correctly compiling it. So I've been successfully working on my CUDA program on my Linux but I would like to support Windows platform as well. So, I tried and reinstall CUDA, finally it work now. Some netizens said that it happened if you installed Visual Studio before you install CUDA. I just have the same issue of No CUDA toolset found with different versions, and my system: this was a 'reinstall' since I had already installed it, but with a bunch of VS2019,VS2017 Build Tools all installed at once!!) during the installation.Īt that point, my cudnn files were still in the bin/lib/include folder of the 10.1 installation, and I hit "Configure" in CMake again.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |