2

I found on the internet a performance tip for Julia: compile the system image for your architecture.

Besides the fact, that the process gives an error

julia> include(joinpath(Sys.BINDIR, Base.DATAROOTDIR, "julia", "build_sysimg.jl"))
julia> build_sysimg()
ERROR: UndefVarError: Libdl not defined

I am wondering, how to check all the supported instruction sets that my current system image is using? (i.e. can it use avx2?)

I use Julia 1.0.0

Adam Ryczkowski
  • 7,592
  • 13
  • 42
  • 68
  • 2
    AFAIK, in Julia 1.0.0 it's not necessary for performance anymore to build a custom system image (at least on the common OSs). – carstenbauer Sep 04 '18 at 08:12

1 Answers1

0

I don't know that Julia has an out-of-the box function for this, but if you add the CpuId.jl package via ]add CpuId in the REPL, you can call using CpuId; cpufeaturetable(), as stated in their README.md. (Note - we are in the process of upgrading it to 1.0 - so do file an issue/PR if you run into bugs.)

miguel raz
  • 506
  • 2
  • 6