Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

(v3.6.0) CUDA: nvcc

LCD 47 edited this page Jan 19, 2015 · 1 revision

Author: Hannes Schulz [email protected]

NVCC is a CUDA Compiler from nVidia. See the project's page for details.

Checker options

In order to check header files add this to your .vimrc (this creates an empty .syntastic_dummy.cu file in your source directory):

let g:syntastic_cuda_check_header = 1

By default, nvcc and thus syntastic, defaults to the most basic architecture. This can produce false errors if the developer intends to compile for newer hardware and use newer features, e.g. double precision numbers. To pass a specific target arch to nvcc, e.g. add the following to your .vimrc:

let g:syntastic_cuda_arch = "sm_20"

Note

This checker doesn't call the makeprgBuild() function, and thus it ignores the usual g:syntastic_cuda_nvcc_<option> variables. The only exception is g:syntastic_cuda_nvcc_exec, which can still be used to override the checker's executable.

Clone this wiki locally