summaryrefslogtreecommitdiff
path: root/src/stream_manager.cc
diff options
context:
space:
mode:
authorInderpreet Singh <[email protected]>2011-08-18 16:16:18 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:18:22 -0700
commit75cac88e2131564d79f0407c2d86d0429a1e2dba (patch)
tree8479e2d32f23baa9119148c834172a2ad90f3347 /src/stream_manager.cc
parent4944711704b7b0e3a43517471aa568e73998a861 (diff)
Assigned debug level 3 to stream manager output.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 10013]
Diffstat (limited to 'src/stream_manager.cc')
-rw-r--r--src/stream_manager.cc23
1 files changed, 15 insertions, 8 deletions
diff --git a/src/stream_manager.cc b/src/stream_manager.cc
index 9e031b0..85778c9 100644
--- a/src/stream_manager.cc
+++ b/src/stream_manager.cc
@@ -116,30 +116,36 @@ void stream_operation::do_operation( gpgpu_sim *gpu )
return;
assert(!m_done && m_stream);
- printf("GPGPU-Sim API: stream %u performing ", m_stream->get_uid() );
+ if(g_debug_execution >= 3)
+ printf("GPGPU-Sim API: stream %u performing ", m_stream->get_uid() );
switch( m_type ) {
case stream_memcpy_host_to_device:
- printf("memcpy host-to-device\n");
+ if(g_debug_execution >= 3)
+ printf("memcpy host-to-device\n");
gpu->memcpy_to_gpu(m_device_address_dst,m_host_address_src,m_cnt);
m_stream->record_next_done();
break;
- case stream_memcpy_device_to_host:
- printf("memcpy device-to-host\n");
+ case stream_memcpy_device_to_host:
+ if(g_debug_execution >= 3)
+ printf("memcpy device-to-host\n");
gpu->memcpy_from_gpu(m_host_address_dst,m_device_address_src,m_cnt);
m_stream->record_next_done();
break;
case stream_memcpy_device_to_device:
- printf("memcpy device-to-device\n");
+ if(g_debug_execution >= 3)
+ printf("memcpy device-to-device\n");
gpu->memcpy_gpu_to_gpu(m_device_address_dst,m_device_address_src,m_cnt);
m_stream->record_next_done();
break;
case stream_memcpy_to_symbol:
- printf("memcpy to symbol\n");
+ if(g_debug_execution >= 3)
+ printf("memcpy to symbol\n");
gpgpu_ptx_sim_memcpy_symbol(m_symbol,m_host_address_src,m_cnt,m_offset,1,gpu);
m_stream->record_next_done();
break;
case stream_memcpy_from_symbol:
- printf("memcpy from symbol\n");
+ if(g_debug_execution >= 3)
+ printf("memcpy from symbol\n");
gpgpu_ptx_sim_memcpy_symbol(m_symbol,m_host_address_dst,m_cnt,m_offset,0,gpu);
m_stream->record_next_done();
break;
@@ -330,7 +336,8 @@ void stream_manager::push( stream_operation op )
op.set_stream(&m_stream_zero);
m_stream_zero.push(op);
}
- print_impl(stdout);
+ if(g_debug_execution >= 3)
+ print_impl(stdout);
pthread_mutex_unlock(&m_lock);
if( m_cuda_launch_blocking || stream == NULL ) {
unsigned int wait_amount = 100;