Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNMY: Allow multithreaded callbacks #281

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/C_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function KN_solve(model::Model)
# that Knitro is not multithreaded. Otherwise, the code will segfault
# as we have trouble calling Julia code from multithreaded C
# code. See issue #93 on https://github.com/jump-dev/KNITRO.jl.
if !isempty(model.callbacks)
if VERSION < v"1.9" && !isempty(model.callbacks)
if knitro_version() >= v"13.0"
@_checked KN_set_int_param(model, KN_PARAM_MS_NUMTHREADS, 1)
@_checked KN_set_int_param(model, KN_PARAM_NUMTHREADS, 1)
Expand Down