summaryrefslogtreecommitdiff
path: root/libcuda
diff options
context:
space:
mode:
authortgrogers <[email protected]>2019-06-09 22:20:15 -0400
committerMahmoud <[email protected]>2019-06-10 11:57:40 -0400
commitce1fabd955ee208a38e73d5a5acfba2b26369a3d (patch)
tree228a3e83814b9bbb2a34c5da58a60be2f2a9b9af /libcuda
parent556191bcbe6cfb2a8a1008166aa51b7a8567be82 (diff)
A bunch of boilerbplate to get 10.1 to compile. Still does not yet run. The way CUDA calls kerenels (even on old code) has changed.
Diffstat (limited to 'libcuda')
-rw-r--r--libcuda/cuda_api.h2
-rw-r--r--libcuda/cuda_runtime_api.cc23
2 files changed, 25 insertions, 0 deletions
diff --git a/libcuda/cuda_api.h b/libcuda/cuda_api.h
index 3808e8a..7ee26dc 100644
--- a/libcuda/cuda_api.h
+++ b/libcuda/cuda_api.h
@@ -234,9 +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_API_VERSION < 1010
typedef struct CUuuid_st { /**< CUDA definition of UUID */
char bytes[16];
} CUuuid;
+#endif
#if __CUDA_API_VERSION >= 4010
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc
index 2cc84aa..fb3e07a 100644
--- a/libcuda/cuda_runtime_api.cc
+++ b/libcuda/cuda_runtime_api.cc
@@ -2763,6 +2763,29 @@ cudaError_t CUDARTAPI cudaDeviceSynchronize(void){
return g_last_cudaError = cudaSuccess;
}
+void CUDARTAPI __cudaRegisterFatBinaryEnd( void **fatCubinHandle )
+{
+
+}
+
+unsigned CUDARTAPI __cudaPushCallConfiguration(dim3 gridDim,
+ dim3 blockDim,
+ size_t sharedMem = 0,
+ struct CUstream_st *stream = 0)
+{
+
+}
+
+cudaError_t CUDARTAPI __cudaPopCallConfiguration(
+ dim3 *gridDim,
+ dim3 *blockDim,
+ size_t *sharedMem,
+ void *stream
+)
+{
+ return g_last_cudaError = cudaSuccess;
+}
+
void CUDARTAPI __cudaRegisterFunction(
void **fatCubinHandle,
const char *hostFun,