summaryrefslogtreecommitdiff
path: root/libcuda/cuda_api.h
diff options
context:
space:
mode:
authorbftf <[email protected]>2019-11-11 12:29:15 -0800
committerbftf <[email protected]>2019-11-11 12:55:02 -0800
commit555cce395bb8457a209b26f6f7ff62cc09839fdf (patch)
treeaf7022e7396572b04589036494a82794e866c7bb /libcuda/cuda_api.h
parentd10ff4bf1fab969cabb69febb895ead4b377a778 (diff)
Enabled CUDA 10. Added implementations for __cudaPushCallConfiguration and __cudaPopCallConfiguration, neither of which are documented in the CUDA API but they preceed any cudaLaunchKernel() call and push the call configuration on a stack which is then popped when cudaLaunchKernel() is called. Currently the max stack size is 1, an assert will be triggered when this is violated.
Diffstat (limited to 'libcuda/cuda_api.h')
-rw-r--r--libcuda/cuda_api.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcuda/cuda_api.h b/libcuda/cuda_api.h
index 3808e8a..b304a59 100644
--- a/libcuda/cuda_api.h
+++ b/libcuda/cuda_api.h
@@ -234,10 +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
typedef struct CUuuid_st { /**< CUDA definition of UUID */
char bytes[16];
} CUuuid;
-
+#endif
#if __CUDA_API_VERSION >= 4010