mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-12 17:57:38 +00:00
support rocm/migraphx EP in perftest tool (#10449)
Co-authored-by: Weixing Zhang <wezhan@microsoft.com>
This commit is contained in:
parent
062129a5c4
commit
3c96760192
1 changed files with 6 additions and 2 deletions
|
|
@ -33,8 +33,8 @@ namespace perftest {
|
|||
"\t-A: Disable memory arena\n"
|
||||
"\t-I: Generate tensor input binding (Free dimensions are treated as 1.)\n"
|
||||
"\t-c [parallel runs]: Specifies the (max) number of runs to invoke simultaneously. Default:1.\n"
|
||||
"\t-e [cpu|cuda|dnnl|tensorrt|openvino|nuphar|dml|acl]: Specifies the provider 'cpu','cuda','dnnl','tensorrt', "
|
||||
"'openvino', 'nuphar', 'dml', 'acl', 'nnapi' or 'coreml'. "
|
||||
"\t-e [cpu|cuda|dnnl|tensorrt|openvino|nuphar|dml|acl|rocm|migraphx]: Specifies the provider 'cpu','cuda','dnnl','tensorrt', "
|
||||
"'openvino', 'nuphar', 'dml', 'acl', 'nnapi', 'coreml', 'rocm' or 'migraphx'. "
|
||||
"Default:'cpu'.\n"
|
||||
"\t-b [tf|ort]: backend to use. Default:ort\n"
|
||||
"\t-r [repeated_times]: Specifies the repeated times if running in 'times' test mode.Default:1000.\n"
|
||||
|
|
@ -178,6 +178,10 @@ static bool ParseDimensionOverride(std::basic_string<ORTCHAR_T>& dim_identifier,
|
|||
test_config.machine_config.provider_type_name = onnxruntime::kAclExecutionProvider;
|
||||
} else if (!CompareCString(optarg, ORT_TSTR("armnn"))) {
|
||||
test_config.machine_config.provider_type_name = onnxruntime::kArmNNExecutionProvider;
|
||||
} else if (!CompareCString(optarg, ORT_TSTR("rocm"))) {
|
||||
test_config.machine_config.provider_type_name = onnxruntime::kRocmExecutionProvider;
|
||||
} else if (!CompareCString(optarg, ORT_TSTR("migraphx"))) {
|
||||
test_config.machine_config.provider_type_name = onnxruntime::kMIGraphXExecutionProvider;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue