From ebfa343827bbaca7fddc4ae6bc31ce5d62359471 Mon Sep 17 00:00:00 2001 From: neqochan <93161743+neqochan@users.noreply.github.com> Date: Sun, 20 Feb 2022 15:01:37 +0100 Subject: [PATCH] SWDEV-1 - Fix illegal atomic initialization See https://stackoverflow.com/a/21710850 for an extensive discussion. This is a cherry-pick from a github pull request: https://github.com/ROCm-Developer-Tools/ROCclr/pull/29 Change-Id: I87a58548d2995ab51a7cd6e684b5442e5b300923 --- rocclr/platform/memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocclr/platform/memory.cpp b/rocclr/platform/memory.cpp index 892c8655de..1edd79b3af 100644 --- a/rocclr/platform/memory.cpp +++ b/rocclr/platform/memory.cpp @@ -29,7 +29,7 @@ #include // Stores the no. of memory allocations -std::atomic numAllocs = 0; +std::atomic numAllocs = {0}; namespace amd {