diff --git a/projects/clr/rocclr/device/rocm/rocdevice.hpp b/projects/clr/rocclr/device/rocm/rocdevice.hpp index 967a3d8db4..fd366928ee 100644 --- a/projects/clr/rocclr/device/rocm/rocdevice.hpp +++ b/projects/clr/rocclr/device/rocm/rocdevice.hpp @@ -623,7 +623,11 @@ class Device : public NullDevice { struct QueueCompare { // Customized queue compare operator to make sure the queues are sorted in the creation order bool operator()(hsa_queue_t* lhs, hsa_queue_t* rhs) const { + if (DEBUG_HIP_DYNAMIC_QUEUES) { return (lhs->id < rhs->id) ? true : false; + } else { + return (lhs < rhs) ? true : false; + } } }; //! a vector for keeping Pool of HSA queues with low, normal and high priorities for recycling diff --git a/projects/clr/rocclr/utils/flags.hpp b/projects/clr/rocclr/utils/flags.hpp index c2009b13a9..459381eadf 100644 --- a/projects/clr/rocclr/utils/flags.hpp +++ b/projects/clr/rocclr/utils/flags.hpp @@ -271,7 +271,7 @@ release(bool, DEBUG_CLR_KERNARG_HDP_FLUSH_WA, false, \ "Toggle kernel arg copy workaround") \ release(bool, DEBUG_CLR_SKIP_RELEASE_SCOPE, false, \ "Forces release scope to SCOPE_NONE for aql packets") \ -release(bool, DEBUG_HIP_DYNAMIC_QUEUES, true, \ +release(bool, DEBUG_HIP_DYNAMIC_QUEUES, false, \ "Forces dynamic queue management") \ release(uint, DEBUG_HIP_7_PREVIEW, 0, \ "Enables specific backward incompatible changes support before 7.0," \