CUDA Toolkit 4.0 and Nsight 2.0 Release Issues

Previously, I had candidates for the release of both programs, then I removed them and installed production versions of the programs. This includes the CUDA, Parallel Nsight and SDK GPU toolkit. When I go to Project-> Build Customization and select CUDA 4.0, I can no longer install the .cu file as a CUDA C / C ++ file, and when I try to restart the project, I get an error message:

The result "" of evaluating the value "$(CudaBuildTasksPath)" of the "AssemblyFile" attribute in element <UsingTask> is not valid. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 4.0.targets

What is the problem?

+6
source share
1 answer

The handling of the properties of the extension / build task seems to have changed. (This is for me since cuda 3.2, nsight 1.5, vs 2010)

I managed to solve the problem by installing / modifying the vcxproj file:

find

  <ImportGroup Label="ExtensionSettings" /> 

or

  <ImportGroup Label="ExtensionSettings"> </ImportGroup> 

replace

  <ImportGroup Label="ExtensionSettings"> <Import Project="$(VCTargetsPath)\BuildCustomizations\CUDA 4.0.props" /> </ImportGroup> 

Just a quick update . NVIDIA provides a patch in its developer pages . Look for CUDA Toolkit 4.0 Build Customization BUG FIX Update

+11
source

Source: https://habr.com/ru/post/889231/


All Articles