Git Product home page Git Product logo

Comments (5)

mzy2240 avatar mzy2240 commented on August 15, 2024
Julia Version 1.8.2
Commit 36034abf26 (2022-09-29 15:21 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 64 × Intel(R) Xeon(R) Gold 5218 CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, cascadelake)
  Threads: 32 on 64 virtual cores
Environment:
  JULIA_NUM_THREADS = 32

from loopvectorization.jl.

chriselrod avatar chriselrod commented on August 15, 2024

@turbo broadcasting currently doesn't support dynamically broadcasting a contiguous dimension.

That is, a normally contiguous dimension should either be known to be of size 1 at compile time, or of full size.

It is possible to make this efficient, but I've never had the time.
I'll probably do that at some point in the rewrite.

from loopvectorization.jl.

mzy2240 avatar mzy2240 commented on August 15, 2024

Thank you for the quick reply! Surprisingly, it gives correct result and won't crush, as long as it is not being benchmarked. And it could be benchmarked without any issues in my MBP...

from loopvectorization.jl.

chriselrod avatar chriselrod commented on August 15, 2024

I'd have to take a closer look.
It doesn't crash for me:

julia> @benchmark fast_inverse(@view($result[:,:]), $A_inv, $b, $c)
BenchmarkTools.Trial: 10000 samples with 1 evaluation.
 Range (min  max):   9.902 μs  39.703 μs  ┊ GC (min  max): 0.00%  0.00%
 Time  (median):     13.838 μs              ┊ GC (median):    0.00%
 Time  (mean ± σ):   14.702 μs ±  3.534 μs  ┊ GC (mean ± σ):  0.00% ± 0.00%

    ▂▃ ▂    ▅▆▆▇█▄▄▃▁▁                        ▁        ▅   ▁▂ ▂
  ██████▇█▇▇██████████▇▇▄▄▅▇█▇▆▁▃▆▄▅▄▁▄▁▄▇▆▅▄▃█▇▆▆▃▇▄▄▃█▆▃███ █
  9.9 μs       Histogram: log(frequency) by time      26.5 μs <

 Memory estimate: 1.75 KiB, allocs estimate: 2.

julia> versioninfo()
Julia Version 1.9.0-DEV.1805
Commit 050f21edc4 (2022-11-10 22:44 UTC)
Platform Info:
  OS: Linux (x86_64-redhat-linux)
  CPU: 28 × Intel(R) Core(TM) i9-9940X CPU @ 3.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, skylake-avx512)
  Threads: 28 on 28 virtual cores

Can you try commenting out the @turbo @. result[n+1:n+dt_n, 1:n] = -g*f line to see if it makes a difference?

from loopvectorization.jl.

mzy2240 avatar mzy2240 commented on August 15, 2024

Stop crushing after changing result[end, end] = g to @turbo @. result[n+1:n+dt_n, n+1:n+dt_n] = g. Don't know why but it just works.

from loopvectorization.jl.

Related Issues (20)

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.