Skip to content

Commit

Permalink
Remove thread sleeps that were needed for old Julia verisions on macO…
Browse files Browse the repository at this point in the history
…S ARM (#2)
  • Loading branch information
efaulhaber authored May 8, 2024
1 parent 720e728 commit 17e8bd3
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/grid_nhs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,6 @@ function initialize!(neighborhood_search::GridNeighborhoodSearch, coords_fun)

empty!(hashtable)

# This is needed to prevent lagging on macOS ARM.
# See https://github.com/JuliaSIMD/Polyester.jl/issues/89
# ThreadingUtilities.sleep_all_tasks()

for particle in 1:nparticles(neighborhood_search)
# Get cell index of the particle's cell
cell = cell_coords(coords_fun(particle), neighborhood_search)
Expand Down Expand Up @@ -187,10 +183,6 @@ function update!(neighborhood_search::GridNeighborhoodSearch, coords_fun)
# `collect` the keyset to be able to loop over it with `@threaded`.
mark_changed_cell!(neighborhood_search, hashtable, coords_fun, Val(threaded_nhs_update))

# This is needed to prevent lagging on macOS ARM.
# See https://github.com/JuliaSIMD/Polyester.jl/issues/89
# ThreadingUtilities.sleep_all_tasks()

# Iterate over all marked cells and move the particles into their new cells.
for thread in 1:Threads.nthreads()
# Only the entries `1:cell_buffer_indices[thread]` are initialized for `thread`.
Expand Down

0 comments on commit 17e8bd3

Please sign in to comment.