Skip to content

Commit 137c5fc

Browse files
authored
[Preferences] Fix use of symbol for _PREFERENCE_THREADING (#2496)
1 parent a9cf615 commit 137c5fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Trixi.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module Trixi
1818
using Preferences: @load_preference, set_preferences!
1919
const _PREFERENCE_SQRT = @load_preference("sqrt", "sqrt_Trixi_NaN")
2020
const _PREFERENCE_LOG = @load_preference("log", "log_Trixi_NaN")
21-
const _PREFERENCE_THREADING = @load_preference("backend", :polyester)
21+
const _PREFERENCE_THREADING = Symbol(@load_preference("backend", "polyester"))
2222
const _PREFERENCE_LOOPVECTORIZATION = @load_preference("loop_vectorization", true)
2323

2424
# Include other packages that are used in Trixi.jl

src/auxiliary/math.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function set_threading_backend!(backend::Symbol = :polyester; force = true)
2727
if !(backend in valid_backends)
2828
throw(ArgumentError("Invalid threading backend: $(backend). Current options are: $(join(valid_backends, ", "))"))
2929
end
30-
set_preferences!(TRIXI_UUID, "backend" => backend, force = force)
30+
set_preferences!(TRIXI_UUID, "backend" => string(backend), force = force)
3131
@info "Please restart Julia and reload Trixi.jl for the `backend` change to take effect"
3232
end
3333

0 commit comments

Comments
 (0)