Skip to content

Commit 0a5d0e7

Browse files
committed
[Tutorial] Change format of config files to yml
1 parent 8678fe6 commit 0a5d0e7

14 files changed

+210
-224
lines changed

tutorial/session1/togsim_configs/togsim_config.json

Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
num_cores: 1
2+
core_freq_mhz: 940
3+
core_stats_print_period_cycles: 10000
4+
num_systolic_array_per_core: 2
5+
6+
vpu_num_lanes: 128
7+
vpu_spad_size_kb_per_lane: 128
8+
vpu_vector_length_bits: 256
9+
10+
dram_type: ramulator2
11+
dram_freq_mhz: 940
12+
dram_channels: 16
13+
dram_req_size_byte: 32
14+
dram_num_burst_length: 2
15+
dram_stats_print_period_cycles: 10000
16+
ramulator_config_path: ../configs/ramulator2_configs/HBM2_TPUv3.yaml
17+
18+
icnt_type: simple
19+
icnt_latency_cycles: 10
20+
icnt_freq_mhz: 940
21+
icnt_injection_ports_per_core: 16
22+
23+
pytorchsim_functional_mode: 1
24+
pytorchsim_timing_mode: 1
25+
26+
codegen_mapping_strategy: heuristic
27+
codegen_external_mapping_file: ''
28+
codegen_autotune_max_retry: 10
29+
codegen_autotune_template_topk: 4
30+
codegen_compiler_optimization: all

tutorial/session1/togsim_configs/togsim_config_2_cores.json

Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
num_cores: 2
2+
core_freq_mhz: 940
3+
core_stats_print_period_cycles: 10000
4+
num_systolic_array_per_core: 2
5+
6+
vpu_num_lanes: 128
7+
vpu_spad_size_kb_per_lane: 128
8+
vpu_vector_length_bits: 256
9+
10+
dram_type: ramulator2
11+
dram_freq_mhz: 940
12+
dram_channels: 32
13+
dram_req_size_byte: 32
14+
dram_num_burst_length: 2
15+
dram_stats_print_period_cycles: 10000
16+
ramulator_config_path: ../configs/ramulator2_configs/HBM2_TPUv3.yaml
17+
18+
icnt_type: simple
19+
icnt_latency_cycles: 10
20+
icnt_freq_mhz: 940
21+
icnt_injection_ports_per_core: 16
22+
23+
pytorchsim_functional_mode: 0
24+
pytorchsim_timing_mode: 1
25+
26+
codegen_mapping_strategy: heuristic
27+
codegen_external_mapping_file: ''
28+
codegen_autotune_max_retry: 10
29+
codegen_autotune_template_topk: 4
30+
codegen_compiler_optimization: all

tutorial/session1/togsim_configs/togsim_config_autotune.json

Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
num_cores: 1
2+
core_freq_mhz: 940
3+
core_stats_print_period_cycles: 10000
4+
num_systolic_array_per_core: 2
5+
6+
vpu_num_lanes: 128
7+
vpu_spad_size_kb_per_lane: 128
8+
vpu_vector_length_bits: 256
9+
10+
dram_type: ramulator2
11+
dram_freq_mhz: 940
12+
dram_channels: 16
13+
dram_req_size_byte: 32
14+
dram_num_burst_length: 2
15+
dram_stats_print_period_cycles: 10000
16+
ramulator_config_path: ../configs/ramulator2_configs/HBM2_TPUv3.yaml
17+
18+
icnt_type: simple
19+
icnt_latency_cycles: 10
20+
icnt_freq_mhz: 940
21+
icnt_injection_ports_per_core: 16
22+
23+
pytorchsim_functional_mode: 1
24+
pytorchsim_timing_mode: 1
25+
26+
codegen_mapping_strategy: autotune
27+
codegen_external_mapping_file: ''
28+
codegen_autotune_max_retry: 10
29+
codegen_autotune_template_topk: 4
30+
codegen_compiler_optimization: all

tutorial/session1/togsim_configs/togsim_config_external_mapping.json

Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
num_cores: 1
2+
core_freq_mhz: 940
3+
core_stats_print_period_cycles: 10000
4+
num_systolic_array_per_core: 2
5+
6+
vpu_num_lanes: 128
7+
vpu_spad_size_kb_per_lane: 128
8+
vpu_vector_length_bits: 256
9+
10+
dram_type: ramulator2
11+
dram_freq_mhz: 940
12+
dram_channels: 16
13+
dram_req_size_byte: 32
14+
dram_num_burst_length: 2
15+
dram_stats_print_period_cycles: 10000
16+
ramulator_config_path: ../configs/ramulator2_configs/HBM2_TPUv3.yaml
17+
18+
icnt_type: simple
19+
icnt_latency_cycles: 10
20+
icnt_freq_mhz: 940
21+
icnt_injection_ports_per_core: 16
22+
23+
pytorchsim_functional_mode: 1
24+
pytorchsim_timing_mode: 1
25+
26+
codegen_mapping_strategy: external-then-heuristic
27+
codegen_external_mapping_file: /workspace/PyTorchSim/tutorial/session1/tutorial_external_mapping.json
28+
codegen_autotune_max_retry: 10
29+
codegen_autotune_template_topk: 4
30+
codegen_compiler_optimization: all

tutorial/session1/togsim_configs/togsim_config_functional_only.json

Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
num_cores: 1
2+
core_freq_mhz: 940
3+
core_stats_print_period_cycles: 10000
4+
num_systolic_array_per_core: 2
5+
6+
vpu_num_lanes: 128
7+
vpu_spad_size_kb_per_lane: 128
8+
vpu_vector_length_bits: 256
9+
10+
dram_type: ramulator2
11+
dram_freq_mhz: 940
12+
dram_channels: 16
13+
dram_req_size_byte: 32
14+
dram_num_burst_length: 2
15+
dram_stats_print_period_cycles: 10000
16+
ramulator_config_path: ../configs/ramulator2_configs/HBM2_TPUv3.yaml
17+
18+
icnt_type: simple
19+
icnt_latency_cycles: 10
20+
icnt_freq_mhz: 940
21+
icnt_injection_ports_per_core: 16
22+
23+
pytorchsim_functional_mode: 1
24+
pytorchsim_timing_mode: 0
25+
26+
codegen_mapping_strategy: heuristic
27+
codegen_external_mapping_file: ''
28+
codegen_autotune_max_retry: 10
29+
codegen_autotune_template_topk: 4
30+
codegen_compiler_optimization: all

0 commit comments

Comments
 (0)