diff --git a/onnxruntime/python/tools/transformers/benchmark.py b/onnxruntime/python/tools/transformers/benchmark.py index 3979afc763..e3062d6ff7 100644 --- a/onnxruntime/python/tools/transformers/benchmark.py +++ b/onnxruntime/python/tools/transformers/benchmark.py @@ -118,9 +118,10 @@ def run_onnxruntime( use_gpu and ("CUDAExecutionProvider" not in onnxruntime.get_available_providers()) and ("ROCMExecutionProvider" not in onnxruntime.get_available_providers()) + and ("DmlExecutionProvider" not in onnxruntime.get_available_providers()) ): logger.error( - "Please install onnxruntime-gpu package instead of onnxruntime, and use a machine with GPU for testing gpu performance." + "Please install onnxruntime-gpu or onnxruntime-directml package instead of onnxruntime, and use a machine with GPU for testing gpu performance." ) return results