From 25e10f413ed99b8f1e2b7d374a60ac0b04e77d66 Mon Sep 17 00:00:00 2001 From: PeixuanZuo <94887879+PeixuanZuo@users.noreply.github.com> Date: Tue, 21 Feb 2023 11:13:37 +0800 Subject: [PATCH] [FIX] USE_COMPOSABLE_KERNEL is not defined on ROCm5.2.3 (#14750) Fix build failure on ROCm5.2.3 --- .../core/providers/rocm/tunable/rocm_tuning_context.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/onnxruntime/core/providers/rocm/tunable/rocm_tuning_context.cc b/onnxruntime/core/providers/rocm/tunable/rocm_tuning_context.cc index bead003e83..bdaa7c4042 100644 --- a/onnxruntime/core/providers/rocm/tunable/rocm_tuning_context.cc +++ b/onnxruntime/core/providers/rocm/tunable/rocm_tuning_context.cc @@ -63,7 +63,12 @@ RocmTuningResultsValidator::RocmTuningResultsValidator(ROCMExecutionProvider* ep std::string RocmTuningResultsValidator::GetOrtBuildConfig() const { std::ostringstream oss; - oss << "USE_CK=" << USE_COMPOSABLE_KERNEL << "|"; +#ifdef USE_COMPOSABLE_KERNEL + oss << "USE_CK=" << 1 << "|"; +#else + oss << "USE_CK=" << 0 << "|"; +#endif + #ifdef USE_ROCBLAS_EXTENSION_API oss << "USE_ROCBLAS_EXTENSION_API=" << 1 << "|"; #else