From f679b05df7b6e63ef58594db062e282447d0965f Mon Sep 17 00:00:00 2001 From: Tony Tye Date: Sun, 10 Jan 2021 01:21:59 +0000 Subject: [PATCH] Move declaration of kMaxAsyncQueues in rocdefs.h Move declaration of kMaxAsyncQueues in rocdefs.h into the roc namespace and adjacent to the other definitions. Change-Id: Ibd319e3cc191945bacb9c06e1b31967717c1c87c --- rocclr/device/rocm/rocdefs.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rocclr/device/rocm/rocdefs.hpp b/rocclr/device/rocm/rocdefs.hpp index 7908413492..53fbbd5ac7 100644 --- a/rocclr/device/rocm/rocdefs.hpp +++ b/rocclr/device/rocm/rocdefs.hpp @@ -30,6 +30,9 @@ static constexpr size_t PinnedMemoryAlignment = 4 * Ki; //! Specific defines for images for Dynamic Parallelism static constexpr uint DeviceQueueMaskSize = 32; +//! Set to match the number of pipes, which is 8. +static constexpr uint kMaxAsyncQueues = 8; + typedef uint HsaDeviceId; struct AMDDeviceInfo { @@ -75,5 +78,4 @@ static constexpr AMDDeviceInfo DeviceInfo[] = { } // namespace roc -constexpr uint kMaxAsyncQueues = 8; // set to match the number of pipes, which is 8 #endif