Closed ViralBShah closed 8 months ago
tests fail for me on apple silicon too:
% julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.9.3 (2023-08-24)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
(@v1.9) pkg> activate --temp
Activating new project at `/var/folders/s5/8d629n5d7nsf37f60_91wzr40000gq/T/jl_oTgVbU`
(jl_oTgVbU) pkg> add MKL
Resolving package versions...
Installed MKL ─ v0.6.1
Updating `/private/var/folders/s5/8d629n5d7nsf37f60_91wzr40000gq/T/jl_oTgVbU/Project.toml`
[33e6dc65] + MKL v0.6.1
Updating `/private/var/folders/s5/8d629n5d7nsf37f60_91wzr40000gq/T/jl_oTgVbU/Manifest.toml`
[692b3bcd] + JLLWrappers v1.5.0
[33e6dc65] + MKL v0.6.1
[21216c6a] + Preferences v1.4.1
[1d5cc7b8] + IntelOpenMP_jll v2023.2.0+0
[856f044c] + MKL_jll v2023.2.0+0
[0dad84c5] + ArgTools v1.1.1
[56f22d72] + Artifacts
[2a0f44e3] + Base64
[ade2ca70] + Dates
[f43a241f] + Downloads v1.6.0
[7b1f6079] + FileWatching
[b77e0a4c] + InteractiveUtils
[4af54fe1] + LazyArtifacts
[b27032c2] + LibCURL v0.6.3
[76f85450] + LibGit2
[8f399da3] + Libdl
[37e2e46d] + LinearAlgebra
[56ddb016] + Logging
[d6f4376e] + Markdown
[ca575930] + NetworkOptions v1.2.0
[44cfe95a] + Pkg v1.9.2
[de0858da] + Printf
[3fa0cd96] + REPL
[9a3f8284] + Random
[ea8e919c] + SHA v0.7.0
[9e88b42a] + Serialization
[6462fe0b] + Sockets
[fa267f1f] + TOML v1.0.3
[a4e569a6] + Tar v1.10.0
[cf7118a7] + UUIDs
[4ec0a83e] + Unicode
[e66e0078] + CompilerSupportLibraries_jll v1.0.5+0
[deac9b47] + LibCURL_jll v7.84.0+0
[29816b5a] + LibSSH2_jll v1.10.2+0
[c8ffd9c3] + MbedTLS_jll v2.28.2+0
[14a3606d] + MozillaCACerts_jll v2022.10.11
[4536629a] + OpenBLAS_jll v0.3.21+4
[83775a58] + Zlib_jll v1.2.13+0
[8e850b90] + libblastrampoline_jll v5.8.0+0
[8e850ede] + nghttp2_jll v1.48.0+0
[3f19e933] + p7zip_jll v17.4.0+0
Precompiling project...
1 dependency successfully precompiled in 1 seconds. 8 already precompiled.
(jl_oTgVbU) pkg> precompile
julia> using MKL
(jl_oTgVbU) pkg> st
Status `/private/var/folders/s5/8d629n5d7nsf37f60_91wzr40000gq/T/jl_oTgVbU/Project.toml`
[33e6dc65] MKL v0.6.1
(jl_oTgVbU) pkg> test MKL
Testing MKL
Status `/private/var/folders/s5/8d629n5d7nsf37f60_91wzr40000gq/T/jl_JZtIe9/Project.toml`
[33e6dc65] MKL v0.6.1
[276daf66] SpecialFunctions v2.3.1
[856f044c] MKL_jll v2023.2.0+0
[56f22d72] Artifacts `@stdlib/Artifacts`
[ade2ca70] Dates `@stdlib/Dates`
[8ba89e20] Distributed `@stdlib/Distributed`
[8f399da3] Libdl `@stdlib/Libdl`
[37e2e46d] LinearAlgebra `@stdlib/LinearAlgebra`
[de0858da] Printf `@stdlib/Printf`
[3fa0cd96] REPL `@stdlib/REPL`
[9a3f8284] Random `@stdlib/Random`
[6462fe0b] Sockets `@stdlib/Sockets`
[2f01184e] SparseArrays `@stdlib/SparseArrays`
[8dfed614] Test `@stdlib/Test`
Status `/private/var/folders/s5/8d629n5d7nsf37f60_91wzr40000gq/T/jl_JZtIe9/Manifest.toml`
[ffbed154] DocStringExtensions v0.9.3
[92d709cd] IrrationalConstants v0.2.2
[692b3bcd] JLLWrappers v1.5.0
[2ab3a3ac] LogExpFunctions v0.3.26
[33e6dc65] MKL v0.6.1
[21216c6a] Preferences v1.4.1
[276daf66] SpecialFunctions v2.3.1
[1d5cc7b8] IntelOpenMP_jll v2023.2.0+0
[856f044c] MKL_jll v2023.2.0+0
[efe28fd5] OpenSpecFun_jll v0.5.5+0
[0dad84c5] ArgTools v1.1.1 `@stdlib/ArgTools`
[56f22d72] Artifacts `@stdlib/Artifacts`
[2a0f44e3] Base64 `@stdlib/Base64`
[ade2ca70] Dates `@stdlib/Dates`
[8ba89e20] Distributed `@stdlib/Distributed`
[f43a241f] Downloads v1.6.0 `@stdlib/Downloads`
[7b1f6079] FileWatching `@stdlib/FileWatching`
[b77e0a4c] InteractiveUtils `@stdlib/InteractiveUtils`
[4af54fe1] LazyArtifacts `@stdlib/LazyArtifacts`
[b27032c2] LibCURL v0.6.3 `@stdlib/LibCURL`
[76f85450] LibGit2 `@stdlib/LibGit2`
[8f399da3] Libdl `@stdlib/Libdl`
[37e2e46d] LinearAlgebra `@stdlib/LinearAlgebra`
[56ddb016] Logging `@stdlib/Logging`
[d6f4376e] Markdown `@stdlib/Markdown`
[ca575930] NetworkOptions v1.2.0 `@stdlib/NetworkOptions`
[44cfe95a] Pkg v1.9.2 `@stdlib/Pkg`
[de0858da] Printf `@stdlib/Printf`
[3fa0cd96] REPL `@stdlib/REPL`
[9a3f8284] Random `@stdlib/Random`
[ea8e919c] SHA v0.7.0 `@stdlib/SHA`
[9e88b42a] Serialization `@stdlib/Serialization`
[6462fe0b] Sockets `@stdlib/Sockets`
[2f01184e] SparseArrays `@stdlib/SparseArrays`
[fa267f1f] TOML v1.0.3 `@stdlib/TOML`
[a4e569a6] Tar v1.10.0 `@stdlib/Tar`
[8dfed614] Test `@stdlib/Test`
[cf7118a7] UUIDs `@stdlib/UUIDs`
[4ec0a83e] Unicode `@stdlib/Unicode`
[e66e0078] CompilerSupportLibraries_jll v1.0.5+0 `@stdlib/CompilerSupportLibraries_jll`
[deac9b47] LibCURL_jll v7.84.0+0 `@stdlib/LibCURL_jll`
[29816b5a] LibSSH2_jll v1.10.2+0 `@stdlib/LibSSH2_jll`
[c8ffd9c3] MbedTLS_jll v2.28.2+0 `@stdlib/MbedTLS_jll`
[14a3606d] MozillaCACerts_jll v2022.10.11 `@stdlib/MozillaCACerts_jll`
[4536629a] OpenBLAS_jll v0.3.21+4 `@stdlib/OpenBLAS_jll`
[05823500] OpenLibm_jll v0.8.1+0 `@stdlib/OpenLibm_jll`
[bea87d4a] SuiteSparse_jll v5.10.1+6 `@stdlib/SuiteSparse_jll`
[83775a58] Zlib_jll v1.2.13+0 `@stdlib/Zlib_jll`
[8e850b90] libblastrampoline_jll v5.8.0+0 `@stdlib/libblastrampoline_jll`
[8e850ede] nghttp2_jll v1.48.0+0 `@stdlib/nghttp2_jll`
[3f19e933] p7zip_jll v17.4.0+0 `@stdlib/p7zip_jll`
Precompiling project...
1 dependency successfully precompiled in 1 seconds. 15 already precompiled.
Testing Running tests...
LinearAlgebra.BLAS.get_config() = LBTConfig([ILP64] libopenblas64_.dylib)
Sanity Tests: Error During Test at /Users/arthurb/.julia/packages/MKL/BHVVg/test/runtests.jl:15
Test threw exception
Expression: ((LinearAlgebra.BLAS.get_config()).loaded_libs[1]).libname == libmkl_rt
UndefVarError: `libmkl_rt` not defined
Stacktrace:
[1] macro expansion
@ ~/.julia/juliaup/julia-1.9.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.9/Test/src/Test.jl:478 [inlined]
[2] macro expansion
@ ~/.julia/packages/MKL/BHVVg/test/runtests.jl:15 [inlined]
[3] macro expansion
@ ~/.julia/juliaup/julia-1.9.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.9/Test/src/Test.jl:1498 [inlined]
[4] top-level scope
@ ~/.julia/packages/MKL/BHVVg/test/runtests.jl:15
Test Summary: | Pass Error Total Time
Sanity Tests | 1 1 2 1.0s
ERROR: LoadError: Some tests did not pass: 1 passed, 0 failed, 1 errored, 0 broken.
in expression starting at /Users/arthurb/.julia/packages/MKL/BHVVg/test/runtests.jl:14
ERROR: Package MKL errored during testing
(jl_oTgVbU) pkg>
That's a different problem: Intel doesn't provide MKL for your platform at all.
doh, right. would it make sense to exit immediately at the top of runtests.jl in that case?
Probably we should have an arch check function, which can be called in init()
and print a warning, and which can also be checked from the tests for early exit.
On AMD, we may want to print a warning and proceed, where as on non-x86, a warning and exit.
This is an upstream issue with Intel, and we are unlikely to be able to do much. Documented in the README.
These are from https://github.com/JuliaLinearAlgebra/MKL.jl/actions/runs/5786517472/job/15681397514. Seen in #123
Just capturing here for the record, since this used to pass in earlier releases. Intel macs are naturally going to be rarer going forward.