Skip to content

Using julia_cmd during precompilation propagates JULIA_CPU_TARGET #49912

@vchuravy

Description

@vchuravy

For pkgimages I added the ability to set -C from julia_cmd flag.

cpu_target = unsafe_string(opts.cpu_target)

In the same motion I added the propagation of the -C flag to julia_cmd. Our current recommendation for people who want
to use multi-versioning for pkgimages is to set JULIA_CPU_TARGET="generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1)",

I just came across a package (AMDGPU) in the wild that uses julia_cmd during precompilation...

cmd = Base.julia_cmd() = `/home/rocm-user/julia-1.9.0/bin/julia '-Cgeneric;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1)' -J/home/rocm-user/julia-1.9.0/lib/julia/sys.so -g1 --color=yes --startup-file=no`
More than one command line CPU targets specified without a `--output-` flag specified

Not sure what the correct solution here is...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorregressionRegression in behavior compared to a previous version

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions