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

lrsnash isn't thread-safe #178

Open
btwied opened this issue Jun 16, 2023 · 0 comments
Open

lrsnash isn't thread-safe #178

btwied opened this issue Jun 16, 2023 · 0 comments

Comments

@btwied
Copy link

btwied commented Jun 16, 2023

Running the following program with -t 1 and -t 8 gives very different results!

using Base.Threads: @threads
using GameTheory: NormalFormGame, lrsnash

@threads for i in 1:200
    if length(lrsnash(NormalFormGame(rand(0:999, 2,2,2)))) == 0
        println("No equilibria found!")
    end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant