diff options
| author | Mahmoud <[email protected]> | 2019-06-10 18:06:42 -0400 |
|---|---|---|
| committer | Mahmoud <[email protected]> | 2019-06-10 18:06:42 -0400 |
| commit | fe58efe9c8ca38f7d0f3781e54b04bc526bdfd07 (patch) | |
| tree | 418b05d075c7b874c098e7a973c4f2b9505dafc5 /libcuda | |
| parent | 5c515f198da620e36731fa82e22d97c60ec714af (diff) | |
fixing thrust error
Diffstat (limited to 'libcuda')
| -rw-r--r-- | libcuda/cuda_runtime_api.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc index fb3e07a..17a5c96 100644 --- a/libcuda/cuda_runtime_api.cc +++ b/libcuda/cuda_runtime_api.cc @@ -1498,6 +1498,9 @@ __host__ cudaError_t CUDARTAPI cudaLaunch( const char *hostFun ) gpgpusim_ptx_assert( !g_cuda_launch_stack.empty(), "empty launch stack" ); kernel_config config = g_cuda_launch_stack.back(); struct CUstream_st *stream = config.get_stream(); + if(g_stream_manager->is_blocking()) + stream = 0; + printf("\nGPGPU-Sim PTX: cudaLaunch for 0x%p (mode=%s) on stream %u\n", hostFun, g_ptx_sim_mode?"functional simulation":"performance simulation", stream?stream->get_uid():0 ); kernel_info_t *grid = gpgpu_cuda_ptx_sim_init_grid(hostFun,config.get_args(),config.grid_dim(),config.block_dim(),context); |
