目前已经CUDA识别键CUDA C/C++函数,例如cudaMalloc,cudaFree,cudaEventCreate等.
它还识别某些类型,如dim3和cudaEvent_t.
但是,它不识别其他功能和类型,例如纹理模板,__syncthreads功能或atomicCAS功能.
一切都编译得很好,但我已经厌倦了在整个地方看到红色下划线,我想看到当你输入任何可识别的功能时显示的示例参数.
如何让VS获得这些功能?
intellisense cuda keyword visual-studio-2010 code-completion
我已经安装了CUDA 5工具包(32位和64位,因为它似乎工作)并在VS 2010中创建了一个CUDA运行时项目,它编译得很好并且运行但在调用CUDA函数时我得到一条红线.
这不是一个大问题,但它有点烦人,有没有办法删除它?我猜它是一些项目设置或其他一些但我不知道,谷歌也没有.
我附上了截图,让你知道我在说什么.
感谢您阅读本文,我很感激.
凯文

vscode-cpptools是否有任何方法可以抑制“ <<< >>>”错误。
我在中将“ * .cu”与“ cpp”相关联setting.json。
// use normal c++ syntax highlighting for CUDA files
"files.associations": {"*.cu": "cpp"},
Run Code Online (Sandbox Code Playgroud)
并且工作正常,除了一个问题, kernel execution configuration parameters surrounded by <<< and >>>被误认为是错误expected an expression
dim3 dimGrid(2, 2, 1);
dim3 dimBlock(width / 2, width / 2, 1);
MatrixMulKernel<<<dimGrid, dimBlock>>>(d_M, d_N, d_P, width);
Run Code Online (Sandbox Code Playgroud)
任何建议