-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Follow up changes for InitError #12742
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -236,9 +236,14 @@ include("linalg/arpack.jl") | |
include("linalg/arnoldi.jl") | ||
|
||
function __init__() | ||
Base.check_blas() | ||
if Base.blas_vendor() == :mkl | ||
ccall((:MKL_Set_Interface_Layer, Base.libblas_name), Void, (Cint,), USE_BLAS64 ? 1 : 0) | ||
try | ||
Base.check_blas() | ||
if Base.blas_vendor() == :mkl | ||
ccall((:MKL_Set_Interface_Layer, Base.libblas_name), Void, (Cint,), USE_BLAS64 ? 1 : 0) | ||
end | ||
catch ex | ||
Base.showerror_nostdio(ex, | ||
"WARNING: Error during initialization of module LinAlg") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moving it to the |
||
end | ||
end | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this just be
warn(string(...
. Thetry... catch
seems strange, when the only possible exception comes from an expliciterror()
Please verify if
warn
work in__init__
, there might be issues with STDOUT there too.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not just that
error
call, but anyccall
into libgmp that might throw. The goal is to letBase
load even when any of the shared libraries are actually missing, though I don't know how that situation might arise.warn
was the first thing I tried and it didn't work which led to the newshowerror
function.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
people embedding julia into a different language or wanting to deploy standalone executables might not always need bigint's