From 1d1d402dccc2711b335a4b87688c1903f3653b2b Mon Sep 17 00:00:00 2001 From: David Yat Sin Date: Fri, 16 Aug 2024 15:21:09 +0000 Subject: [PATCH] Do not allow default mem_flags Force mem_flags to be explicit passed in then calling Queue constructor to avoid ambiguity with calls to Queue constructor trying to only pass the agent_node_id. Change-Id: Ib6fedcb9e52d6c9f35f9051dfa989343456ca368 Signed-off-by: David Yat Sin --- runtime/hsa-runtime/core/inc/queue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/hsa-runtime/core/inc/queue.h b/runtime/hsa-runtime/core/inc/queue.h index 75a291a66f..45b6fbe241 100644 --- a/runtime/hsa-runtime/core/inc/queue.h +++ b/runtime/hsa-runtime/core/inc/queue.h @@ -184,7 +184,7 @@ class Queue : public Checked<0xFA3906A679F9DB49>, private LocalQueue { public_handle_ = Convert(this); } - Queue(int agent_node_id, int mem_flags = 0) : LocalQueue(agent_node_id, mem_flags), amd_queue_(queue()->amd_queue) { + Queue(int agent_node_id, int mem_flags) : LocalQueue(agent_node_id, mem_flags), amd_queue_(queue()->amd_queue) { queue()->core_queue = this; public_handle_ = Convert(this); }