Skip to content

vscode always reports spurious cuda errors #13124

@vipcxj

Description

@vipcxj

Environment

  • OS and Version: win 7
  • VS Code Version: 1.96.2
  • C/C++ Extension Version: 1.22.11
  • If using SSH remote, specify OS of remote machine: Linux node6 6.8.0-49-generic # 49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Bug Summary and Steps to Reproduce

Image
And I am sure the vscode has detect this file as cuda c++ file
Image
And this file can be compiled successfully.

And in the command window,I type nvcc --version

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Wed_Nov_22_10:17:15_PST_2023
Cuda compilation tools, release 12.3, V12.3.107
Build cuda_12.3.r12.3/compiler.33567101_0

Configuration and Logs

The nvcc compiler could not be found: nvcc
The nvcc compiler could not be found: nvcc
The host compilation command is not found in the output of nvcc.
The host compilation command is not found in the output of nvcc.
The host compilation command is not found in the output of nvcc.

Other Extensions

No response

Additional context

It seems this issue relate to #4218, vscode unable to resolve the env PATH.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions