[ET Trac] #2832: possible race condition in LoopControl
Erik Schnetter
trac-noreply at einsteintoolkit.org
Tue Nov 5 11:56:15 CST 2024
#2832: possible race condition in LoopControl
Reporter: Roland Haas
Status: new
Milestone:
Version:
Type: bug
Priority: major
Component:
Comment (by Erik Schnetter):
We don’t need `new` or `std::vector`. We replace the call to `new` with `posix_memalign`, and the call to `delete` by `free`. Then each thread has one cache line as intended.
Alternatively, there could be one call to `posix_memalign` allocating memory for all threads, and each thread uses pointer arithmetic to find its place.
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2832/possible-race-condition-in-loopcontrol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.einsteintoolkit.org/pipermail/trac/attachments/20241105/e86bc2ab/attachment-0001.htm>
More information about the Trac
mailing list