Skip to content

lrsnash isn't thread-safe #178

@btwied

Description

@btwied

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions