Skip to content

Threads break on Julia 1.12 #57

Description

@aijony

On Julia 1.12.1

nested task error: BoundsError: attempt to access 1-element Vector{Tuple{MVector{1, Float64}, Vector{MVector{3, Float64}}}} at index [2]

I haven't tested other Julia versions or on different hardware, so it may be something else besides the version - but probably a safe guess.

Removing @threads from empirical_potential.jl seems to fix the issue and all tests pass.

function _perform_pairwise(f::Function, s::AbstractSystem, p::EmpiricalPotential, data::T) where {T<:Tuple}

I have not investigated this very much, but it may be an instance of:
https://julialang.org/blog/2023/07/PSA-dont-use-threadid/#fixing_buggy_code_which_uses_this_pattern

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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