Elton, thank you so much for your response.
I did not know that Nsight Monitor is not needed for the next-gen debugger. I am sorry if I have missed that in the official documentation, could you please refer me to the respective section in the documentation?
I am totally fine to use the next-gen debugger, but unfortunately it does not work, as described in my original post.
Maybe I am doing something wrong with the installation? How a fresh, “from zero” installation shall be done?
Install Visual Studio 2022 and then install CUDA SDK with “Visual Studio Integration” and “Nsight VSE” included?
If those gets installed, I don’t understand why one shall install NVIDIA Nsight Integration (64-bit)
extension inside Visual Studio 2022.
To be honest, I don’t understand if the “NVIDIA Nsight Visual Studio Edition 2022.2.1.22136” comes from the CUDA SDK installation or from a Visual Studio extension:
Regarding CMake, I open it with “Open Folder”. Usually it gets added to my recently used projects. If I click “Project > Delete cache and reconfigure”, I get a successful run of CMake for this very CUDA project:
1> CMake generation started for configuration: 'x64-Debug'.
...
1> [CMake] -- The CUDA compiler identification is NVIDIA 11.7.99
1> [CMake] -- Detecting CUDA compiler ABI info
1> [CMake] -- Detecting CUDA compiler ABI info - done
...
1> [CMake] -- Detecting CUDA compile features
1> [CMake] -- Detecting CUDA compile features - done
1> [CMake] -- The CXX compiler identification is MSVC 19.34.31721.0
1> [CMake] -- Detecting CXX compiler ABI info
1> [CMake] -- Detecting CXX compiler ABI info - done
...
1> [CMake] -- Detecting CXX compile features
1> [CMake] -- Detecting CXX compile features - done
1> [CMake] -- Configuring done
1> [CMake] CMake Warning (dev) in CMakeLists.txt:
1> [CMake] Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
1> [CMake] empty CUDA_ARCHITECTURES not allowed. Run "cmake --help-policy CMP0104"
1> [CMake] for policy details. Use the cmake_policy command to set the policy and
1> [CMake] suppress this warning.
1> [CMake]
...
...
1> Extracted CMake variables.
1> Extracted source files and headers.
1> Extracted code model.
1> Extracted toolchain configurations.
1> Extracted includes paths.
1> CMake generation finished.