Skip to content

Commit 3fa7ba4

Browse files
committed
News and compat annotation for #29978 (peakflops from
InteractiveUtils to LinearAlgebra).
1 parent 221273c commit 3fa7ba4

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ Deprecated or removed
8080
to get an appropriate task-local buffer and pass it to `grisu()` instead ([#29907]).
8181
* The internal function `Base._default_type(T)` has been removed. Calls to it should be
8282
replaced with just the argument `T` ([#29739]).
83+
* `peakflops` has been scheduled to move from `InteractiveUtils` to `LinearAlgebra`
84+
but is already now available as `LinearAlgebra.peakflops` ([#29978]).
8385

8486
<!--- generated by NEWS-update.jl: -->
8587
[#28156]: https://github.com/JuliaLang/julia/issues/28156

stdlib/InteractiveUtils/src/InteractiveUtils.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,9 @@ export peakflops
316316
[`gemm!`](@ref LinearAlgebra.BLAS.gemm!). For more information see
317317
[`LinearAlgebra.peakflops`](@ref).
318318
319-
!!! note
320-
This function will move to the `LinearAlgebra` standard library in the
321-
future, and is already available as `LinearAlgebra.peakflops`.
319+
!!! compat "Julia 1.1"
320+
This function will be moved from `InteractiveUtils` to `LinearAlgebra` in the
321+
future. In Julia 1.1 and later it is available as `LinearAlgebra.peakflops`.
322322
"""
323323
function peakflops(n::Integer=2000; parallel::Bool=false)
324324
# Base.depwarn("`peakflop`s have moved to the LinearAlgebra module, " *

stdlib/LinearAlgebra/src/LinearAlgebra.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,10 @@ If the keyword argument `parallel` is set to `true`, `peakflops` is run in paral
392392
the worker processors. The flop rate of the entire parallel computer is returned. When
393393
running in parallel, only 1 BLAS thread is used. The argument `n` still refers to the size
394394
of the problem that is solved on each processor.
395+
396+
!!! compat "Julia 1.1"
397+
This function requires at least Julia 1.1. In Julia 1.0 it is available from
398+
the standard library `InteractiveUtils`.
395399
"""
396400
function peakflops(n::Integer=2000; parallel::Bool=false)
397401
a = fill(1.,100,100)

0 commit comments

Comments
 (0)