Skip to content

Conversation

@mcgrathcm
Copy link

In preparation for higher order sequences, this adds:

  • Discrete sequences adapted and passed directly to GPU kernels
  • Spatial gradient Bz term moved to its own helper function
  • AbstractDiscreteSequence type added to allow dispatch when higher order sequences are added

… sequences, moved spatial gradient calculation to own function.
@codecov
Copy link

codecov bot commented Nov 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.16%. Comparing base (11d3180) to head (17e586e).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #652      +/-   ##
==========================================
- Coverage   91.22%   91.16%   -0.06%     
==========================================
  Files          57       58       +1     
  Lines        3248     3250       +2     
==========================================
  Hits         2963     2963              
- Misses        285      287       +2     
Flag Coverage Δ
base 91.32% <100.00%> (-0.16%) ⬇️
core 89.77% <100.00%> (+0.03%) ⬆️
files 94.98% <ø> (ø)
komamri 88.13% <ø> (ø)
plots 90.90% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
KomaMRIBase/src/KomaMRIBase.jl 100.00% <ø> (ø)
...IBase/src/datatypes/simulation/DiscreteSequence.jl 93.10% <100.00%> (-6.90%) ⬇️
KomaMRICore/src/KomaMRICore.jl 100.00% <ø> (ø)
KomaMRICore/src/simulation/Functors.jl 77.27% <ø> (ø)
...re/src/simulation/SimMethods/Bloch/cpu/BlochCPU.jl 100.00% <100.00%> (ø)
...re/src/simulation/SimMethods/Bloch/gpu/BlochGPU.jl 100.00% <ø> (ø)
...e/src/simulation/SimMethods/BlochDict/BlochDict.jl 85.18% <ø> (ø)
...c/simulation/SimMethods/BlochSimple/BlochSimple.jl 100.00% <ø> (ø)
KomaMRICore/src/simulation/SimulatorCore.jl 94.96% <ø> (ø)
KomaMRICore/src/simulation/SpatialEncoding.jl 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

KomaMRI Benchmarks

Details
Benchmark suite Current: 17e586e Previous: 11d3180 Ratio
MRI Lab/Bloch/CPU/2 thread(s) 387199837.5 ns 337633469 ns 1.15
MRI Lab/Bloch/CPU/4 thread(s) 289067546 ns 276282606 ns 1.05
MRI Lab/Bloch/CPU/8 thread(s) 242467570.5 ns 209852165 ns 1.16
MRI Lab/Bloch/CPU/1 thread(s) 655549193 ns 555065232 ns 1.18
MRI Lab/Bloch/GPU/CUDA 20962776 ns 21231134 ns 0.99
MRI Lab/Bloch/GPU/oneAPI 85944808 ns 77053690 ns 1.12
MRI Lab/Bloch/GPU/Metal 104643083 ns 95540333 ns 1.10
MRI Lab/Bloch/GPU/AMDGPU 25102288 ns 24763685 ns 1.01
Slice Selection 3D/Bloch/CPU/2 thread(s) 1651013192 ns 1592087059 ns 1.04
Slice Selection 3D/Bloch/CPU/4 thread(s) 911694348 ns 889539516 ns 1.02
Slice Selection 3D/Bloch/CPU/8 thread(s) 599249406.5 ns 565401528.5 ns 1.06
Slice Selection 3D/Bloch/CPU/1 thread(s) 3109371230 ns 3029269071 ns 1.03
Slice Selection 3D/Bloch/GPU/CUDA 31822745 ns 32639703 ns 0.97
Slice Selection 3D/Bloch/GPU/oneAPI 133804680 ns 121489006.5 ns 1.10
Slice Selection 3D/Bloch/GPU/Metal 112492041 ns 111152750 ns 1.01
Slice Selection 3D/Bloch/GPU/AMDGPU 32559879.5 ns 32636098 ns 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@cncastillo
Copy link
Member

The macos fails are due to actions/runner-images#13341.

@cncastillo
Copy link
Member

Compare benchmarks with #653.

Update: macos cache problem fixed.

Copy link
Member

@cncastillo cncastillo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very good, no significant performance regressions, but some of them could be explained by some of the suggestions below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants