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
[ROCm/clr commit: ebfa343827]
Этот коммит содержится в:
коммит произвёл
Jeremy Newton
родитель
2f46f23b66
Коммит
996e8ea2b3
@@ -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 {
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user