scrooloose/syntastic — pull request #279 by johntyree (2012-06-22 14:15:29+00:00)
Title: Global option for Cuda arch flag

Cuda programs may produce different errors depending on the architecture of the
target hardware. The canonical example and reason for writing this patch, is the
lack of support for double precision numbers on older hardware. 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.

Not defining g:syntastic_cuda_arch preserves this behavior. Otherwise the user
is expected to set it a valid arch flag, as listed by `nvcc --help`.

Example:

let g:syntastic_cuda_arch = "sm_20"

This could be generalized, but I don't know how common of a problem it really is. Cuda might be a special case.