'include/cuda/cuda.h': For C++, wrap in 'extern "C"'
include/ * cuda/cuda.h: For C++, wrap in 'extern "C"'.
This commit is contained in:
parent
ba8563693f
commit
bdd1dc1bfb
@ -32,6 +32,10 @@ the proprietary CUDA toolkit. */
|
||||
|
||||
#define CUDA_VERSION 8000
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef void *CUcontext;
|
||||
typedef int CUdevice;
|
||||
#if defined(__LP64__) || defined(_WIN64)
|
||||
@ -191,4 +195,8 @@ CUresult cuStreamQuery (CUstream);
|
||||
CUresult cuStreamSynchronize (CUstream);
|
||||
CUresult cuStreamWaitEvent (CUstream, CUevent, unsigned);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* GCC_CUDA_H */
|
||||
|
Loading…
Reference in New Issue
Block a user