summaryrefslogtreecommitdiff
path: root/libcuda
diff options
context:
space:
mode:
authortgrogers <[email protected]>2019-06-09 22:20:15 -0400
committertgrogers <[email protected]>2019-06-09 22:20:15 -0400
commitc7f515f6f5325c65f32dd64e1ad479660c751e99 (patch)
tree1371d079189de604e6bb248832f50e83d114dd31 /libcuda
parentf99838eca06b3f9a281987bc230f4ae5b8426d69 (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.cc25
2 files changed, 27 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 18a9abb..718db49 100644
--- a/libcuda/cuda_runtime_api.cc
+++ b/libcuda/cuda_runtime_api.cc
@@ -630,6 +630,8 @@ void gpgpu_context::cuobjdumpRegisterFatBinary(unsigned int handle, const char*
fatbinmap[handle] = filename;
}
+
+
/*******************************************************************************
* Add internal cuda runtime API call to accept gpgpu_context *
*******************************************************************************/
@@ -2975,6 +2977,29 @@ void** CUDARTAPI __cudaRegisterFatBinary( void *fatCubin )
return cudaRegisterFatBinaryInternal(fatCubin);
}
+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,