From 2202dcfe806766804648a9f38de35f555351e7fa Mon Sep 17 00:00:00 2001 From: Ajay GunaShekar <86270081+agunashe@users.noreply.github.com> Date: Thu, 4 Sep 2025 14:07:12 -0700 Subject: [PATCH] SWDEV-552613 - Windows: Use Direct Dispatch only on HSA ROCr Backend (#809) * SWDEV-552613 - Disable Direct Dispatch on Windows * SWDEV-552613 - Use Direct Dispatch on HSA backend only --------- Co-authored-by: GunaShekar Co-authored-by: Christophe Paquot <35546540+chrispaquot@users.noreply.github.com> --- projects/clr/hipamd/src/hip_context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/src/hip_context.cpp b/projects/clr/hipamd/src/hip_context.cpp index 6982783cf4..2907919b17 100644 --- a/projects/clr/hipamd/src/hip_context.cpp +++ b/projects/clr/hipamd/src/hip_context.cpp @@ -45,7 +45,7 @@ void init(bool* status) { #if DISABLE_DIRECT_DISPATCH constexpr bool kDirectDispatch = false; #else -#ifndef WITHOUT_HSA_BACKEND +#if defined(WITH_HSA_DEVICE) constexpr bool kDirectDispatch = true; #else constexpr bool kDirectDispatch = false;