Skip to content

Does not respect JULIA_CPU_TARGET #15

@jakobnissen

Description

@jakobnissen

MWE:

$ export JULIA_CPU_TARGET=generic
$ julia --startup-file=no -q

julia> using HostCPUFeatures

julia> has_feature(Val{:x86_64_avx2}())
static(true)

This cause issues during precompilation with pkgimages on Julia 1.9, e.g. BioJulia/FASTX.jl#101.

Without knowing many of the details, I think this should be relatively easy to fix. Setting JULIA_CPU_FEATURES forces precompilation of all packages, so HostCPUFeatures can simply check at precompile time if the env variable is set, and then adjust its compile time results accordingly.

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