summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan <[email protected]>2018-05-23 11:14:42 -0700
committerJonathan <[email protected]>2018-05-23 11:14:42 -0700
commit9636bbfef261c732c990b7159c9ad699888f5553 (patch)
treea92938edbdd76e4759f9283674c0be813b7eb14e
parent835b78988ce1797e394cb1b169db83e7d0fc1038 (diff)
unimplement cudaStreaWaitEvent because I don't know what I'm doing
-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 f597a15..e61ed0b 100644
--- a/libcuda/cuda_runtime_api.cc
+++ b/libcuda/cuda_runtime_api.cc
@@ -1170,22 +1170,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;
}
/*******************************************************************************