summaryrefslogtreecommitdiff
path: root/libcuda/cuda_runtime_api.cc
diff options
context:
space:
mode:
authorJonathan <[email protected]>2018-05-23 11:14:42 -0700
committerJonathan <[email protected]>2018-05-25 09:11:55 -0700
commit14db8e9d45ff253ae79376c7e8e4dc4cb06042b6 (patch)
tree74fcd2c91b9a12eda4a567f50629c2feb3dfb544 /libcuda/cuda_runtime_api.cc
parent11aa36f93b49b384d5620df69ab3ce2a50a84d24 (diff)
unimplement cudaStreaWaitEvent because I don't know what I'm doing
Diffstat (limited to 'libcuda/cuda_runtime_api.cc')
-rw-r--r--libcuda/cuda_runtime_api.cc18
1 files changed, 2 insertions, 16 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc
index a45ed61..30e3989 100644
--- a/libcuda/cuda_runtime_api.cc
+++ b/libcuda/cuda_runtime_api.cc
@@ -1159,22 +1159,8 @@ __host__ cudaError_t CUDARTAPI cudaStreamQuery(cudaStream_t stream)
__host__ cudaError_t CUDARTAPI cudaStreamWaitEvent(cudaStream_t stream, cudaEvent_t event, unsigned int flags)
{
-
-#if (CUDART_VERSION >= 3000)
- if( stream == NULL )
- return g_last_cudaError = cudaErrorInvalidResourceHandle;
- return g_last_cudaError = stream->empty()?cudaSuccess:cudaErrorNotReady;
-#else
- printf("GPGPU-Sim API: cudaStreamWaitEvent ** waiting for event\n");
- fflush(stdout);
- CUevent_st *e = (CUevent_st*) event;
- while( !e->done() )
- ;
- printf("GPGPU-Sim API: cudaStreamWaitEvent ** event detected\n");
- fflush(stdout);
- printf("GPGPU-Sim PTX: WARNING: Asynchronous kernel execution not supported (%s)\n", __my_func__);
- return g_last_cudaError = cudaSuccess; // it is always success because all cuda calls are synchronous
-#endif
+ cuda_not_implemented(__my_func__,__LINE__);
+ return g_last_cudaError = cudaErrorUnknown;
}
/*******************************************************************************