We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 808bc4c commit 3d16e6fCopy full SHA for 3d16e6f
include/CLUEstering/DataFormats/alpaka/AssociationMap.hpp
@@ -71,7 +71,7 @@ namespace clue {
71
uint32_t* sizes,
72
size_t size) const {
73
for (auto i : alpaka::uniformElements(acc, size)) {
74
- auto prev = alpaka::atomicAdd(acc, &sizes[associations[i]], 1u);
+ alpaka::atomicAdd(acc, &sizes[associations[i]], 1u);
75
}
76
77
};
@@ -86,8 +86,8 @@ namespace clue {
86
87
const auto binId = bin_buffer[i];
88
const auto position = temp_offsets[binId];
89
- indexes[position] = i;
90
- alpaka::atomicAdd(acc, &temp_offsets[binId], 1u);
+ auto prev = alpaka::atomicAdd(acc, &temp_offsets[binId], 1u);
+ indexes[prev] = i;
91
92
93
0 commit comments