Support CUDA function attributes in CUDA ≥ 4.1
Support CUDA function attributes in CUDA ≥ 4.1

CUDA 4.1 introduced a function cudaFuncGetAttributes() to retrieve
Attributes of a device kernel, e.g. the maximum number of threads
Supported by the function and the current device

The CUDA driver API has had a similar function cuFuncGetAttribute()
Since CUDA 2.2, however this function requires a parameter of type
CUfunction, which the CUDA runtime API does not seem to provide

halmd-org/cuda-wrapper