diff options
| author | bftf <[email protected]> | 2019-11-12 19:14:16 -0800 |
|---|---|---|
| committer | bftf <[email protected]> | 2019-11-12 19:14:16 -0800 |
| commit | 57d2df04da439b1055590f10cff5f5f50791b9d9 (patch) | |
| tree | 6afbf62e80a0f0181a2fe126b467c795a03174d3 /libcuda/cuda_api.h | |
| parent | 555cce395bb8457a209b26f6f7ff62cc09839fdf (diff) | |
Updated the ifdef flag which enables/disables the relevant code blocks for cuda 10; while assuring backwards compatibility for older cuda versions
Diffstat (limited to 'libcuda/cuda_api.h')
| -rw-r--r-- | libcuda/cuda_api.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcuda/cuda_api.h b/libcuda/cuda_api.h index b304a59..0ded242 100644 --- a/libcuda/cuda_api.h +++ b/libcuda/cuda_api.h @@ -234,11 +234,11 @@ typedef struct CUgraphicsResource_st *CUgraphicsResource; /**< CUDA graphics int typedef unsigned long long CUtexObject; /**< An opaque value that represents a CUDA texture object */ typedef unsigned long long CUsurfObject; /**< An opaque value that represents a CUDA surface object */ -#if CUDA_VERSION < 1000 +#if CUDART_VERSION < 10000 typedef struct CUuuid_st { /**< CUDA definition of UUID */ char bytes[16]; } CUuuid; -#endif +#endif // #if CUDART_VERSION < 10000 #if __CUDA_API_VERSION >= 4010 |
