diff options
| author | Dongdong Li <[email protected]> | 2013-08-22 20:28:46 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:50:58 -0700 |
| commit | 69d31fcda599d82e9bcf5970bdecbc181388e5ef (patch) | |
| tree | d3c58fb0f7ca14bc91e069408e2807188fd88af3 /src/gpgpu-sim/icnt_wrapper.h | |
| parent | 33262d1b6c2101dc43eb748d432df43097a1c849 (diff) | |
Refactoring:
1. Decouple the constructor of interconnect interface
2. Some type changed to unsigned from int
Fixed Bug: wrong variable in InterconnectInterface::Busy()
Review: 83001
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 16877]
Diffstat (limited to 'src/gpgpu-sim/icnt_wrapper.h')
| -rw-r--r-- | src/gpgpu-sim/icnt_wrapper.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpgpu-sim/icnt_wrapper.h b/src/gpgpu-sim/icnt_wrapper.h index 2cbe0df..a4d123e 100644 --- a/src/gpgpu-sim/icnt_wrapper.h +++ b/src/gpgpu-sim/icnt_wrapper.h @@ -32,6 +32,7 @@ // functional interface to the interconnect +typedef void (*icnt_create_p)(unsigned n_shader, unsigned n_mem); 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); @@ -44,7 +45,7 @@ typedef void (*icnt_display_overall_stats_p)( ); typedef void (*icnt_display_state_p)(FILE* fp); typedef unsigned (*icnt_get_flit_size_p)(); - +extern icnt_create_p icnt_create; extern icnt_init_p icnt_init; extern icnt_has_buffer_p icnt_has_buffer; extern icnt_push_p icnt_push; @@ -63,7 +64,7 @@ enum network_mode { N_NETWORK_MODE }; -void icnt_wrapper_init( unsigned int n_shader, unsigned int n_mem ); +void icnt_wrapper_init(); void icnt_reg_options( class OptionParser * opp ); #endif |
