File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -206,13 +206,13 @@ and [https://discourse.julialang.org/t/threads-threads-with-one-thread-how-to-re
206206macro threaded (expr)
207207 # !!! danger "Heisenbug"
208208 # Look at the comments for `wrap_array` when considering to change this macro.
209- expr = @static if _PREFERENCE_THREADING == :polyester
209+ expr = @static if _PREFERENCE_THREADING === :polyester
210210 # Currently using `@batch` from Polyester.jl is more efficient,
211211 # bypasses the Julia task scheduler and provides parallelization with less overhead.
212212 quote
213213 $ Trixi. @batch $ (expr)
214214 end
215- elseif _PREFERENCE_THREADING == :static
215+ elseif _PREFERENCE_THREADING === :static
216216 # The following code is a simple version using only `Threads.@threads` from the
217217 # standard library with an additional check whether only a single thread is used
218218 # to reduce some overhead (and allocations) for serial execution.
@@ -225,7 +225,7 @@ macro threaded(expr)
225225 end
226226 end
227227 end
228- elseif _PREFERENCE_THREADING == :dynamic
228+ elseif _PREFERENCE_THREADING === :dynamic
229229 quote
230230 let
231231 if $ Threads. nthreads () == 1
@@ -235,7 +235,7 @@ macro threaded(expr)
235235 end
236236 end
237237 end
238- elseif _PREFERENCE_THREADING == :serial
238+ elseif _PREFERENCE_THREADING === :serial
239239 quote
240240 $ (expr)
241241 end
You can’t perform that action at this time.
0 commit comments