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

CUDA: nvcc

LCD 47 edited this page Apr 17, 2013 · 10 revisions

Author: Hannes Schulz [email protected]

In order to also 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"
Clone this wiki locally