File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ OP_RANGE=$MIN_SEQ_OPS-$MAX_SEQ_OPS
1010export CUDA_VISIBLE_DEVICES=" ${GPU_ID} "
1111
1212GRAPH_NET_ROOT=$( python3 -c " import graph_net; import os; print(os.path.dirname(os.path.dirname(graph_net.__file__)))" )
13+ RESUME=" true"
1314
1415DECOMPOSE_WORKSPACE=/tmp/subgraph_dataset_workspace/test100
1516LEVEL_DECOMPOSE_WORKSPACE=$DECOMPOSE_WORKSPACE /decomposed_${OP_RANGE} ops
6465}
6566
6667function generate_split_point() {
67- # level 1: 2, 4
68- # level 2: 4, 8
69- # level 3: 8, 16
70- # level 4: 16, 32
71- # level 5: 32, 64
7268 echo " >>> [2] Generate split points for samples in ${model_list} ."
7369 echo " >>> MIN_SEQ_OPS: ${MIN_SEQ_OPS} , MAX_SEQ_OPS: ${MAX_SEQ_OPS} "
7470 echo " >>>"
@@ -174,7 +170,8 @@ function gen_fusible_subgraphs() {
174170 "output_json_file_name": "cumsum_num_kernels.json",
175171 "model_path_prefix": "${DEVICE_REWRITED_OUTPUT_DIR} ",
176172 "output_dir": "$CUMSUM_NUM_KERNELS_DIR ",
177- "resume": true
173+ "device": "cuda",
174+ "resume": ${RESUME}
178175 }
179176}
180177EOF
191188 "input_json_file_name": "cumsum_num_kernels.json",
192189 "output_json_file_name": "fusible_subgraph_ranges.json",
193190 "output_dir": "$FUSIBLE_SUBGRAPH_RANGES_DIR ",
194- "resume": true
191+ "resume": ${RESUME}
195192 }
196193}
197194EOF
207204 "model_path_prefix": "${DEVICE_REWRITED_OUTPUT_DIR} ",
208205 "output_dir": "$FUSIBLE_SUBGRAPH_SAMPLES_DIR ",
209206 "subgraph_ranges_json_root": "$FUSIBLE_SUBGRAPH_RANGES_DIR ",
210- "resume": true
207+ "resume": ${RESUME}
211208 }
212209}
213210EOF
You can’t perform that action at this time.
0 commit comments