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
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
#include <atomic>
|
||||
|
||||
// Stores the no. of memory allocations
|
||||
std::atomic<uint32_t> numAllocs = 0;
|
||||
std::atomic<uint32_t> numAllocs = {0};
|
||||
|
||||
namespace amd {
|
||||
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user