Skip to content

Commit b9714d0

Browse files
committed
Update test script.
1 parent 02f31da commit b9714d0

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

graph_net/tools/generate_subgraph_dataset.sh

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ OP_RANGE=$MIN_SEQ_OPS-$MAX_SEQ_OPS
1010
export CUDA_VISIBLE_DEVICES="${GPU_ID}"
1111

1212
GRAPH_NET_ROOT=$(python3 -c "import graph_net; import os; print(os.path.dirname(os.path.dirname(graph_net.__file__)))")
13+
RESUME="true"
1314

14-
DECOMPOSE_WORKSPACE=/tmp/subgraph_dataset_workspace/test100
15+
DECOMPOSE_WORKSPACE=/tmp/graphnet_test_workspace/test100
1516
LEVEL_DECOMPOSE_WORKSPACE=$DECOMPOSE_WORKSPACE/decomposed_${OP_RANGE}ops
1617
OP_NAMES_OUTPUT_DIR=${DECOMPOSE_WORKSPACE}/sample_op_names
1718
RANGE_DECOMPOSE_OUTPUT_DIR=$LEVEL_DECOMPOSE_WORKSPACE/range_decompose
@@ -64,11 +65,6 @@ EOF
6465
}
6566

6667
function 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
}
180177
EOF
@@ -191,7 +188,7 @@ EOF
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
}
197194
EOF
@@ -207,7 +204,7 @@ EOF
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
}
213210
EOF

0 commit comments

Comments
 (0)