tkf / BenchmarkCI.jl
Showing 1 of 1 files from the diff.

@@ -48,7 +48,7 @@
Loading
48 48
49 49
50 50
"""
51 -
    blas_num_threads() :: Union{Int, Nothing}
51 +
    blas_num_threads_old() :: Union{Int, Nothing}
52 52
53 53
Get the number of threads BLAS is using.
54 54
@@ -57,7 +57,7 @@
Loading
57 57
58 58
See also: https://stackoverflow.com/a/37516335
59 59
"""
60 -
function blas_num_threads()
60 +
function blas_num_threads_old()
61 61
    blas = LinearAlgebra.BLAS.vendor()
62 62
    # Wrap in a try to catch unsupported blas versions
63 63
    try
@@ -78,3 +78,14 @@
Loading
78 78
79 79
    return nothing
80 80
end
81 +
82 +
"""
83 +
    blas_num_threads() :: Union{Int, Nothing}
84 +
85 +
Get the number of threads BLAS is using.
86 +
"""
87 +
const blas_num_threads = try
88 +
    LinearAlgebra.BLAS.get_num_threads
89 +
catch
90 +
    blas_num_threads_old
91 +
end
Files Coverage
src 65.71%
Project Totals (3 files) 65.71%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading