diff options
| author | Mahmoud <[email protected]> | 2020-05-30 22:17:04 -0400 |
|---|---|---|
| committer | Mahmoud <[email protected]> | 2020-05-30 22:17:04 -0400 |
| commit | 3f051d4e5e24943575ac4c19c358e1a0e6de621c (patch) | |
| tree | 45148f663962117f006b1da67e0ffeb743714a16 /src/gpgpu-sim/gpu-sim.cc | |
| parent | 6b72554af7018a8dc42e607f6983a070fe5e5a42 (diff) | |
adding new specialization units
Diffstat (limited to 'src/gpgpu-sim/gpu-sim.cc')
| -rw-r--r-- | src/gpgpu-sim/gpu-sim.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gpgpu-sim/gpu-sim.cc b/src/gpgpu-sim/gpu-sim.cc index b62524e..03aebf3 100644 --- a/src/gpgpu-sim/gpu-sim.cc +++ b/src/gpgpu-sim/gpu-sim.cc @@ -529,6 +529,17 @@ void shader_core_config::reg_options(class OptionParser *opp) { option_parser_register(opp, "-gpgpu_reg_file_port_throughput", OPT_INT32, ®_file_port_throughput, "the number ports of the register file", "1"); + + for (unsigned j = 0; j < SPECIALIZED_UNIT_NUM; ++j) { + std::stringstream ss; + ss << "-specialized_unit_" << j + 1; + option_parser_register(opp, ss.str().c_str(), OPT_CSTR, + &specialized_unit_string[j], + "specialized unit config" + " {<enabled>,<num_units>:<latency>:<initiation>,<ID_" + "OC_SPEC>:<OC_EX_SPEC>,<NAME>}", + "0,4,4,4,4,BRA"); + } } void gpgpu_sim_config::reg_options(option_parser_t opp) { |
