From a5ad8b23a83db49b63e5903f8052c294b53a59b9 Mon Sep 17 00:00:00 2001 From: Ted Themistokleous Date: Thu, 22 Aug 2024 18:53:39 +0000 Subject: [PATCH] Remove default noopt for migraphx. use -o no_opt instead on select scripts --- onnxruntime/python/tools/transformers/benchmark.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/onnxruntime/python/tools/transformers/benchmark.py b/onnxruntime/python/tools/transformers/benchmark.py index adf6865b4b6d8..92cb1b4369acf 100644 --- a/onnxruntime/python/tools/transformers/benchmark.py +++ b/onnxruntime/python/tools/transformers/benchmark.py @@ -136,15 +136,6 @@ def run_onnxruntime( ) return results - if provider == "migraphx": - optimizer_info = OptimizerInfo.NOOPT - warm_up_repeat = 5 - if "MIGraphXExecutionProvider" not in onnxruntime.get_available_providers(): - logger.error( - "Please install onnxruntime-rocm package, and use a machine with GPU for testing gpu performance." - ) - return results - if optimizer_info == OptimizerInfo.NOOPT: logger.warning( f"OptimizerInfo is set to {optimizer_info}, graph optimizations specified in FusionOptions are not applied."