From b879dca51ca1431eddcc0b21eb360abf426e48fa Mon Sep 17 00:00:00 2001 From: ytaous <4484531+ytaous@users.noreply.github.com> Date: Thu, 4 Aug 2022 20:40:09 -0700 Subject: [PATCH] Fix Python Packaging CI (Rocm) (#12477) Fix Python Packaging CI Co-authored-by: Ethan Tao --- onnxruntime/core/providers/rocm/miopen_common.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/onnxruntime/core/providers/rocm/miopen_common.cc b/onnxruntime/core/providers/rocm/miopen_common.cc index 6078160106..10b71a2249 100644 --- a/onnxruntime/core/providers/rocm/miopen_common.cc +++ b/onnxruntime/core/providers/rocm/miopen_common.cc @@ -81,10 +81,12 @@ miopenDataType_t MiopenTensor::GetDataType() { ORT_THROW("miopen engine currently supports only single/half/int32/int8 precision data types."); } +#if ROCM_VERSION >= 50000 template<> miopenDataType_t MiopenTensor::GetDataType() { return miopenDouble; } +#endif template<> miopenDataType_t MiopenTensor::GetDataType() {