Giter Club home page Giter Club logo

Comments (2)

xrq-phys avatar xrq-phys commented on May 24, 2024

Just noticed that since 0.1.0, gemmt is introduced while upstream has ≥0.8.0 as requirement.
Hence I should tag the current HEAD as 0.2.0 and make this roadmap 0.3.0.

from blis.jl.

xrq-phys avatar xrq-phys commented on May 24, 2024

And another thing:

  • Overriding gemm! alone seems forwarding generic strides but not mixed precision. I'd be good to also override somehow mul!{A::Array{TA},B::Array{TB},C::Array{TC}}{TA≠TB≠TC} for mixed precision support.

cf. log:

# Generic striding is good:
julia> @benchmark view(A, 1:2:1000, :)*B setup=(A=rand(Float64, 1000, 1000); B=rand(Float64, 1000, 1000))
BenchmarkTools.Trial: 22 samples with 1 evaluation.
 Range (min … max):  228.803 ms … 233.134 ms  ┊ GC (min … max): 0.00% … 0.00%
 Time  (median):     229.311 ms               ┊ GC (median):    0.00%
 Time  (mean ± σ):   229.954 ms ±   1.277 ms  ┊ GC (mean ± σ):  0.00% ± 0.00%

julia> using BLIS; @benchmark view(A, 1:2:1000, :)*B setup=(A=rand(Float64, 1000, 1000); B=rand(Float64, 1000, 1000))
BenchmarkTools.Trial: 213 samples with 1 evaluation.
 Range (min … max):  20.919 ms …  21.676 ms  ┊ GC (min … max): 0.00% … 0.00%
 Time  (median):     21.161 ms               ┊ GC (median):    0.00%
 Time  (mean ± σ):   21.137 ms ± 109.760 μs  ┊ GC (mean ± σ):  0.00% ± 0.00%
# Mixed precision not reaching BLIS directly:
julia> A=rand(Float64, 1000, 1000); B=rand(Float32, 1000, 1000);
julia> using Cthulhu; @descend A*B
...
   %7  = invoke copyto_axcheck!(::Matrix{Float64},::Matrix{Float32})::Matrix{Float64}
   %8  = invoke gemm!(::Char,::Char,::Float64,::Matrix{Float64},::Matrix{Float64},::Float64,::Matrix{Float64})::Matrix{Float64}
 • ↩

from blis.jl.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.