diff options
Diffstat (limited to 'src/gpgpu-sim/icnt_wrapper.h')
| -rw-r--r-- | src/gpgpu-sim/icnt_wrapper.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/gpgpu-sim/icnt_wrapper.h b/src/gpgpu-sim/icnt_wrapper.h index f8e6baf..2cbe0df 100644 --- a/src/gpgpu-sim/icnt_wrapper.h +++ b/src/gpgpu-sim/icnt_wrapper.h @@ -31,21 +31,30 @@ #include <stdio.h> // functional interface to the interconnect + +typedef void (*icnt_init_p)( ); typedef bool (*icnt_has_buffer_p)(unsigned input, unsigned int size); typedef void (*icnt_push_p)(unsigned input, unsigned output, void* data, unsigned int size); typedef void* (*icnt_pop_p)(unsigned output); typedef void (*icnt_transfer_p)( ); -typedef unsigned (*icnt_busy_p)( ); +typedef bool (*icnt_busy_p)( ); typedef void (*icnt_drain_p)( ); +typedef void (*icnt_display_stats_p)( ); +typedef void (*icnt_display_overall_stats_p)( ); +typedef void (*icnt_display_state_p)(FILE* fp); typedef unsigned (*icnt_get_flit_size_p)(); +extern icnt_init_p icnt_init; extern icnt_has_buffer_p icnt_has_buffer; extern icnt_push_p icnt_push; extern icnt_pop_p icnt_pop; extern icnt_transfer_p icnt_transfer; extern icnt_busy_p icnt_busy; extern icnt_drain_p icnt_drain; +extern icnt_display_stats_p icnt_display_stats; +extern icnt_display_overall_stats_p icnt_display_overall_stats; +extern icnt_display_state_p icnt_display_state; extern icnt_get_flit_size_p icnt_get_flit_size; extern int g_network_mode; @@ -54,8 +63,7 @@ enum network_mode { N_NETWORK_MODE }; -void icnt_init( unsigned int n_shader, unsigned int n_mem ); +void icnt_wrapper_init( unsigned int n_shader, unsigned int n_mem ); void icnt_reg_options( class OptionParser * opp ); -void display_icnt_state( FILE *fp ); #endif |
