From 57d2df04da439b1055590f10cff5f5f50791b9d9 Mon Sep 17 00:00:00 2001 From: bftf Date: Tue, 12 Nov 2019 19:14:16 -0800 Subject: Updated the ifdef flag which enables/disables the relevant code blocks for cuda 10; while assuring backwards compatibility for older cuda versions --- libcuda/cuda_api.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcuda/cuda_api.h') 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 -- cgit v1.3