diff options
| author | Jonathan <[email protected]> | 2018-05-29 10:15:19 -0700 |
|---|---|---|
| committer | Jonathan <[email protected]> | 2018-05-29 10:15:19 -0700 |
| commit | 21cce426d844c64dac5de7985b97857bb3724e88 (patch) | |
| tree | 37b010351c6ef34cc5972f5e84a4b8dbaff1bfd6 /libcuda | |
| parent | 89177651e85312fbc841391121908a5e92280881 (diff) | |
fixes seg fault on concurrentKernels, speeds up concurrent_streams_empty, adds check for null stream case on cudaStreamWaitEvent
Diffstat (limited to 'libcuda')
| -rw-r--r-- | libcuda/cuda_runtime_api.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc index f130a37..33da17f 100644 --- a/libcuda/cuda_runtime_api.cc +++ b/libcuda/cuda_runtime_api.cc @@ -1203,6 +1203,10 @@ __host__ cudaError_t CUDARTAPI cudaStreamWaitEvent(cudaStream_t stream, cudaEven { CUevent_st *e = get_event(event); if( !e ) return g_last_cudaError = cudaErrorUnknown; + if (!stream){ + printf("GPGPU-Sim API: Warning: cudaStreamWaitEvent on NULL stream not currently supported.\n"); + return g_last_cudaError = cudaErrorInvalidValue; + } struct CUstream_st *s = (struct CUstream_st *)stream; stream_operation op(s,e,flags); g_stream_manager->push(op); |
