Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
USE_JULIA_BLAS
Browse files Browse the repository at this point in the history
  • Loading branch information
iblislin committed Sep 14, 2019
1 parent 8c73cd9 commit 3ef9cf0
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions julia/deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -177,17 +177,7 @@ if !libmxnet_detected
blas_path = Libdl.dlpath(Libdl.dlopen(Base.libblas_name))
blas_vendor = LinearAlgebra.BLAS.vendor()

if blas_vendor == :unknown
@info("Julia is built with an unkown blas library ($blas_path).")
@info("Attempting build without reusing the blas library")
USE_JULIA_BLAS = false
elseif !(blas_vendor in (:openblas, :openblas64))
@info("Unsure if we can build against $blas_vendor.")
@info("Attempting build anyway.")
USE_JULIA_BLAS = true
else
USE_JULIA_BLAS = false
end
USE_JULIA_BLAS = (blas_vendor in (:openblas, :openblas64))
@info "USE_JULIA_BLAS -> $USE_JULIA_BLAS"

blas_name = occursin("openblas", string(blas_vendor)) ? "open" : string(blas_vendor)
Expand Down

0 comments on commit 3ef9cf0

Please sign in to comment.