summaryrefslogtreecommitdiff
path: root/src/cuda-sim/cuda_device_runtime.cc
diff options
context:
space:
mode:
authorJin Wang <[email protected]>2014-10-23 15:33:59 -0400
committerJin Wang <[email protected]>2016-07-05 09:05:36 -0400
commitf372a4c641b9e6d38470ead6ae25743d26c5fed1 (patch)
tree5a331b1221150c5118e2ef3e058e62340c1a8aeb /src/cuda-sim/cuda_device_runtime.cc
parent3bb32d87175d873e7089ad50a0069acc195edb34 (diff)
BUG: kernels should return to stream if not pushed to concurrent kernel pool
Diffstat (limited to 'src/cuda-sim/cuda_device_runtime.cc')
-rw-r--r--src/cuda-sim/cuda_device_runtime.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/cuda-sim/cuda_device_runtime.cc b/src/cuda-sim/cuda_device_runtime.cc
index be87f6a..c53ea04 100644
--- a/src/cuda-sim/cuda_device_runtime.cc
+++ b/src/cuda-sim/cuda_device_runtime.cc
@@ -122,7 +122,7 @@ void gpgpusim_cuda_launchDeviceV2(const ptx_instruction * pI, ptx_thread_info *
addr_t from_addr = actual_param_op.get_symbol()->get_address();
if(arg == 0) {//paramter buffer for child kernel (in global memory)
- //get parameter_buffer from the cudaDeviceLaunchV2_param0
+ //get parameter_buffer from the cudaLaunchDeviceV2_param0
assert(size == sizeof(void *));
thread->m_local_mem->read(from_addr, size, &parameter_buffer);
assert((size_t)parameter_buffer >= GLOBAL_HEAP_START);
@@ -152,11 +152,13 @@ void gpgpusim_cuda_launchDeviceV2(const ptx_instruction * pI, ptx_thread_info *
kernel_info_t & parent_kernel = thread->get_kernel();
if(child_stream == 0) { //default stream on device for current CTA
child_stream = parent_kernel.get_default_stream_cta(thread->get_ctaid());
- DEV_RUNTIME_REPORT("launching child kernel to default stream of the cta " << child_stream->get_uid() << ": " << child_stream);
+ DEV_RUNTIME_REPORT("launching child kernel " << child_grid->get_uid() <<
+ " to default stream of the cta " << child_stream->get_uid() << ": " << child_stream);
}
else {
assert(parent_kernel.cta_has_stream(thread->get_ctaid(), child_stream));
- DEV_RUNTIME_REPORT("launching child kernel to stream " << child_stream->get_uid() << ": " << child_stream);
+ DEV_RUNTIME_REPORT("launching child kernel " << child_grid->get_uid() <<
+ " to stream " << child_stream->get_uid() << ": " << child_stream);
}
}