File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 726726(\ )(F:: TransposeFactorization{T,<:LU} , B:: VecOrMat{Complex{T}} ) where {T<: BlasReal } =
727727 ldiv (F, B)
728728
729+ const default_peakflops_size = Int === Int32 ? 2048 : 4096
730+
729731"""
730732 LinearAlgebra.peakflops(n::Integer=4096; eltype::DataType=Float64, ntrials::Integer=3, parallel::Bool=false)
731733
@@ -750,7 +752,7 @@ of the problem that is solved on each processor.
750752 This function requires at least Julia 1.1. In Julia 1.0 it is available from
751753 the standard library `InteractiveUtils`.
752754"""
753- function peakflops (n:: Integer = 4096 ; eltype:: DataType = Float64, ntrials:: Integer = 3 , parallel:: Bool = false )
755+ function peakflops (n:: Integer = default_peakflops_size ; eltype:: DataType = Float64, ntrials:: Integer = 3 , parallel:: Bool = false )
754756 t = zeros (Float64, ntrials)
755757 for i= 1 : ntrials
756758 a = ones (eltype,n,n)
You can’t perform that action at this time.
0 commit comments