src/runtimeinfo.jl
changed.
Other files ignored by Codecov
.github/workflows/test.yml
has changed.
16 | 16 | ||
17 | 17 | Base.@kwdef struct RunTimeInfo |
|
18 | 18 | blas_num_threads::Union{Int,Nothing} = blas_num_threads() |
|
19 | - | blas_vendor::Symbol = LinearAlgebra.BLAS.vendor() |
|
19 | + | blas_vendor::Symbol = blas_vendor() |
|
20 | 20 | lscpu::Union{String,Nothing} = safe_lscpu() |
|
21 | 21 | end |
|
22 | 22 |
47 | 47 | end |
|
48 | 48 | ||
49 | 49 | ||
50 | + | if isdefined(LinearAlgebra.BLAS, :get_config) |
|
51 | + | blas_vendor() = :libblastrampoline # TODO: |
|
52 | + | else |
|
53 | + | blas_vendor() = LinearAlgebra.BLAS.vendor() |
|
54 | + | end |
|
55 | + | ||
56 | + | ||
50 | 57 | """ |
|
51 | 58 | blas_num_threads() :: Union{Int, Nothing} |
|
52 | 59 |
57 | 64 | ||
58 | 65 | See also: https://stackoverflow.com/a/37516335 |
|
59 | 66 | """ |
|
60 | - | function blas_num_threads() |
|
67 | + | blas_num_threads() = |
|
68 | + | VERSION < v"1.6" ? blas_num_threads_jl10() : LinearAlgebra.BLAS.get_num_threads() |
|
69 | + | ||
70 | + | function blas_num_threads_jl10() |
|
61 | 71 | blas = LinearAlgebra.BLAS.vendor() |
|
62 | 72 | # Wrap in a try to catch unsupported blas versions |
|
63 | 73 | try |
Files | Coverage |
---|---|
src | 66.02% |
Project Totals (3 files) | 66.02% |