Skip to content

Commit

Permalink
News and compat annotation for #29978 (peakflops from
Browse files Browse the repository at this point in the history
InteractiveUtils to LinearAlgebra).
  • Loading branch information
fredrikekre committed Nov 30, 2018
1 parent cf00844 commit c61edf5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ Deprecated or removed
to get an appropriate task-local buffer and pass it to `grisu()` instead ([#29907]).
* The internal function `Base._default_type(T)` has been removed. Calls to it should be
replaced with just the argument `T` ([#29739]).
* `peakflops` have been scheduled to move from `InteractiveUtils` to `LinearAlgebra`
but is already now available as `LinearAlgebra.peakflops` ([#29978]).

<!--- generated by NEWS-update.jl: -->
[#28156]: https://github.com/JuliaLang/julia/issues/28156
Expand Down
6 changes: 3 additions & 3 deletions stdlib/InteractiveUtils/src/InteractiveUtils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,9 @@ export peakflops
[`gemm!`](@ref LinearAlgebra.BLAS.gemm!). For more information see
[`LinearAlgebra.peakflops`](@ref).
!!! note
This function will move to the `LinearAlgebra` standard library in the
future, and is already available as `LinearAlgebra.peakflops`.
!!! compat "Julia 1.1"
This function will be moved from `InteractiveUtils` to `LinearAlgebra` in the
future. In Julia 1.1 and later it is available as `LinearAlgebra.peakflops`.
"""
function peakflops(n::Integer=2000; parallel::Bool=false)
# Base.depwarn("`peakflop`s have moved to the LinearAlgebra module, " *
Expand Down
4 changes: 4 additions & 0 deletions stdlib/LinearAlgebra/src/LinearAlgebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,10 @@ If the keyword argument `parallel` is set to `true`, `peakflops` is run in paral
the worker processors. The flop rate of the entire parallel computer is returned. When
running in parallel, only 1 BLAS thread is used. The argument `n` still refers to the size
of the problem that is solved on each processor.
!!! compat "Julia 1.1"
This function requires at least Julia 1.1. In Julia 1.0 it is available from
the standard library `InteractiveUtils`.
"""
function peakflops(n::Integer=2000; parallel::Bool=false)
a = fill(1.,100,100)
Expand Down

0 comments on commit c61edf5

Please sign in to comment.