[FIX] USE_COMPOSABLE_KERNEL is not defined on ROCm5.2.3 (#14750)

Fix build failure on ROCm5.2.3
This commit is contained in:
PeixuanZuo 2023-02-21 11:13:37 +08:00 committed by GitHub
parent 3d79b1f06e
commit 25e10f413e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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