Skip to content

Racy bitcode compilation #570

@maleadt

Description

@maleadt

I thought we already worked around this, using an atomic move-in-place:

GPUCompiler.jl/src/rtlib.jl

Lines 145 to 149 in c15433c

# atomic write to disk
temp_path, io = mktemp(dirname(path); cleanup=false)
write(io, lib)
close(io)
Base.rename(temp_path, path; force=true)

However, it looks like this still happens on CI, e.g. https://buildkite.com/julialang/metal-dot-jl/builds/947#018ee3aa-18e2-472c-b93f-f77451e3f87a

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