Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug New Motion #472

Closed
wants to merge 187 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
187 commits
Select commit Hold shift + click to select a range
2b491ff
Initial commit
pvillacorta Jul 11, 2024
b948d49
Delete `Static`
pvillacorta Jul 11, 2024
8f2ead2
Merge branch 'master' into new-motion
pvillacorta Jul 11, 2024
7ad003e
Apply suggested change by @rkierulf
pvillacorta Aug 1, 2024
447cbf7
Merge branch 'master' into new-motion
pvillacorta Aug 1, 2024
2804413
Solve bug
pvillacorta Aug 1, 2024
596af23
Enable all testsitems
pvillacorta Aug 1, 2024
fe9c8c2
Suggested changes
pvillacorta Aug 8, 2024
79596ad
Solve bug
pvillacorta Aug 9, 2024
ea91613
Solve bug
pvillacorta Aug 9, 2024
e10660f
Export `AbstractMotionList`
pvillacorta Aug 12, 2024
211337f
Remove periodic motions from docs
pvillacorta Aug 12, 2024
c78838e
Update `contracting_ring.phantom` example
pvillacorta Aug 12, 2024
c603fd0
Recover `tmp` variable for now
pvillacorta Aug 13, 2024
a21e3d7
Solve docs bug
pvillacorta Aug 13, 2024
76895c2
Update docs to pass CI
pvillacorta Aug 13, 2024
056c615
Docstrings to pass CI
pvillacorta Aug 14, 2024
4901df7
Test `get_spin_coords` in core
pvillacorta Aug 19, 2024
130a7f1
Continue testing
pvillacorta Aug 19, 2024
b4ac68e
Correct bug
pvillacorta Aug 19, 2024
5b59214
Add SimpleMotion test
pvillacorta Aug 19, 2024
0aa8540
Solve bug
pvillacorta Aug 19, 2024
36f96be
Try again...
pvillacorta Aug 19, 2024
02c539d
Again...
pvillacorta Aug 19, 2024
25360e2
Check if only fails with oneAPI
pvillacorta Aug 19, 2024
0d8a541
Try now
pvillacorta Aug 19, 2024
59d6ecc
Aux comments
pvillacorta Aug 19, 2024
0d2c134
Try with simple motion
pvillacorta Aug 19, 2024
2cbfa29
comments
pvillacorta Aug 19, 2024
77b9530
Recover to initial state
pvillacorta Aug 19, 2024
b5609c6
Merge branch 'master' into new-motion
pvillacorta Aug 19, 2024
0416bb0
Comments
pvillacorta Aug 19, 2024
b268578
More comments
pvillacorta Aug 19, 2024
c32b9bb
Try again
pvillacorta Aug 19, 2024
b90b791
Merge branch 'master' into new-motion
pvillacorta Aug 20, 2024
648a3d9
Merge branch 'master' into new-motion
cncastillo Aug 20, 2024
2995074
Big change
pvillacorta Aug 23, 2024
ee24363
Merge branch 'new-motion' of https://github.com/JuliaHealth/KomaMRI.j…
pvillacorta Aug 23, 2024
725e68a
Try again to test cpu multi-thread error
pvillacorta Aug 24, 2024
057ba72
Docstrings to pass CI
pvillacorta Aug 24, 2024
a1330a4
Solve multi-thread bug
pvillacorta Aug 24, 2024
8e44e49
Solve bug, now it is
pvillacorta Aug 24, 2024
53c1f6b
Merge branch 'master' into new-motion
pvillacorta Aug 24, 2024
0121d2d
Solve docs CI?
pvillacorta Aug 24, 2024
c63aa40
Compare MotionLists' lengths
pvillacorta Aug 26, 2024
d550bcd
Solve bugs
pvillacorta Aug 26, 2024
8db53d4
Auxiliary `length` method for SpinRanges
pvillacorta Aug 26, 2024
d7a3ed4
Solve bugs for flow
pvillacorta Aug 27, 2024
fd125e7
Merge branch 'master' into new-motion
pvillacorta Aug 27, 2024
afa7c83
Update docstrings
pvillacorta Aug 28, 2024
5d5a9a1
Fix some docstrings
pvillacorta Aug 29, 2024
36bc578
Remove unnecessary docstring
pvillacorta Aug 29, 2024
71960f7
Try to include docstring of `Translate` function
pvillacorta Aug 29, 2024
e81f617
It worked, so add the rest of the functions
pvillacorta Aug 29, 2024
15c33b2
Not export `reset_magnetization!`
pvillacorta Aug 29, 2024
c943212
Fix typo in docstring
pvillacorta Aug 29, 2024
0baf29c
Try to separate tests for core and motion (see Oceananigans.jl)
pvillacorta Aug 29, 2024
e29418c
Try to fix error on runtests.yml
pvillacorta Aug 29, 2024
911544f
Try to fix buildkite tests
pvillacorta Aug 29, 2024
e792aff
Change test group title for buildkite
pvillacorta Aug 29, 2024
007ee25
Try to interpolate env variable with $$
pvillacorta Aug 29, 2024
316fabf
Try with only one $
pvillacorta Aug 29, 2024
7049c60
Define env for each buildkite step
pvillacorta Aug 29, 2024
d88ecba
Motion and NoMotion tests separated for buildkite
pvillacorta Aug 29, 2024
9913be1
Only test `get_spin_coords` for ArbitraryAction in gpu
pvillacorta Aug 30, 2024
a156553
Fix test to use Float32
pvillacorta Aug 30, 2024
2655f0d
Disable benchmarks temporarily
pvillacorta Aug 30, 2024
44debdd
Only test ArbitraryMotion for oneAPI
pvillacorta Aug 30, 2024
67f2f33
New example phantoms
pvillacorta Aug 30, 2024
2a9aac7
Test ArbitraryMotion with all vendors again
pvillacorta Aug 30, 2024
d7ea6b7
Trying to find out where the error produces for oneAPI
pvillacorta Aug 30, 2024
42c21d2
Keep trying
pvillacorta Aug 30, 2024
c1f0f3a
Display in order to compare results from `get_spin_coords`
pvillacorta Aug 30, 2024
cfda640
pvillacorta Aug 30, 2024
b308511
Keep testing
pvillacorta Aug 30, 2024
c748249
Original test
pvillacorta Aug 30, 2024
629750d
Tests previous to simulation
pvillacorta Aug 30, 2024
e15f501
10 test iterations to check if any of them fails
pvillacorta Aug 30, 2024
0d4eb5f
Run 10 iterations correctly
pvillacorta Aug 30, 2024
66bf364
Debug messages
pvillacorta Sep 2, 2024
9a3c07e
Remove @suppress
pvillacorta Sep 2, 2024
2e8da48
t_unit is not the problem, display(uy)
pvillacorta Sep 2, 2024
8874821
Fix deleted line, debug with `uy`
pvillacorta Sep 2, 2024
9ea456d
Check dimensions to see if it's problem of a 1D interpolator
pvillacorta Sep 2, 2024
b2765b5
Display @view of first 10 spins
pvillacorta Sep 2, 2024
c2c059b
Display only first spin
pvillacorta Sep 2, 2024
a1745da
Display in a more clear way
pvillacorta Sep 2, 2024
7550373
Display time
pvillacorta Sep 2, 2024
faaa2e6
10 iterations
pvillacorta Sep 2, 2024
54a44c7
20 iterations
pvillacorta Sep 2, 2024
486d6af
Not display time, 8 iterations
pvillacorta Sep 2, 2024
f77f59e
Display time again
pvillacorta Sep 2, 2024
00d7ea8
Try changing preallocations in `get_spin_coords`
pvillacorta Sep 2, 2024
f8f0599
Try 15 iterations with no display, store itp result in intermediate v…
pvillacorta Sep 2, 2024
6cba05d
Display time and uy, 8 iterations
pvillacorta Sep 2, 2024
1262f18
Display time and uy, 8 iterations
pvillacorta Sep 2, 2024
000f1cd
Display only uy, 8 iterations
pvillacorta Sep 2, 2024
d9cd201
Temp variable uy_s
pvillacorta Sep 2, 2024
900e2e2
id_tmp variable
pvillacorta Sep 2, 2024
0c1c6ed
Aux variable
pvillacorta Sep 2, 2024
446936b
Aux variable, try again
pvillacorta Sep 2, 2024
8af933a
initialize uy
pvillacorta Sep 2, 2024
74b8b2d
Print time inside `resample` function
pvillacorta Sep 2, 2024
ce16b57
`t_aux` inside `resample`
pvillacorta Sep 2, 2024
8b4f43d
Dummy var
pvillacorta Sep 2, 2024
d749008
Re-assign dummy variable
pvillacorta Sep 2, 2024
f1e8c49
Try t .= t
pvillacorta Sep 2, 2024
61d19f7
t .= t under copyto!
pvillacorta Sep 2, 2024
5ac223c
println again, looks like is the only thing that works
pvillacorta Sep 2, 2024
4e82da8
Dummy `sum`
pvillacorta Sep 2, 2024
7ea46a8
Recover ux buffers and try again with @cncastillo suggestion
pvillacorta Sep 2, 2024
527c951
Try dummy sum again, as it worked before
pvillacorta Sep 2, 2024
8835924
Try dummy sum inside unit_time instead of resample
pvillacorta Sep 2, 2024
2cc4bfe
Remove dummy sum, only leave the aux `t` variable
pvillacorta Sep 2, 2024
5f6abcb
Try .=
pvillacorta Sep 2, 2024
bd83b01
Try KA.synchronize
pvillacorta Sep 2, 2024
e000c98
KA.synchronize inside KomaMRICore
pvillacorta Sep 2, 2024
8e963e5
Extend `unit_time`
pvillacorta Sep 2, 2024
7d337b9
Extend `unit_time` (2)
pvillacorta Sep 2, 2024
2628e8a
Merge branch 'new-motion-debug' of https://github.com/JuliaHealth/Kom…
pvillacorta Sep 2, 2024
1bcff3d
Delete file
pvillacorta Sep 2, 2024
59417f0
Include TimeSpan.jl before using KomaMRIBase
pvillacorta Sep 2, 2024
8a90cd2
Extend unit_time correctly
pvillacorta Sep 2, 2024
bfe0f9a
Solve bug
pvillacorta Sep 2, 2024
23581ef
Solve import problem
pvillacorta Sep 2, 2024
8c15f9d
Fix typo
pvillacorta Sep 2, 2024
3910d54
Fix missing import
pvillacorta Sep 2, 2024
79117cd
Temp variable `t`
pvillacorta Sep 2, 2024
ccb9066
Recover dummy sum, but now only in the `unit_time` extension oneAPI
pvillacorta Sep 2, 2024
01fdff1
Go back to `synchronize`, use `oneArray`
pvillacorta Sep 2, 2024
15126ca
Simplify
pvillacorta Sep 2, 2024
aac0704
Return in `unit_time`
pvillacorta Sep 2, 2024
691903b
Message to check we're inside the new function
pvillacorta Sep 2, 2024
42225ca
Change `'` to `permutedims`
pvillacorta Sep 2, 2024
6d7f292
Go back to `'`, define alias for oneArray adjoint
pvillacorta Sep 2, 2024
af9332b
Extend function to KomaMRICore
pvillacorta Sep 2, 2024
670e605
import LinearAlgebra
pvillacorta Sep 2, 2024
a96eef8
add LinearAlgebra
pvillacorta Sep 2, 2024
e7104b0
Solve bug
pvillacorta Sep 2, 2024
91a906a
Go back
pvillacorta Sep 2, 2024
d724f21
Include previous definition
pvillacorta Sep 2, 2024
a5efaf7
Fix oneAPIBackend
pvillacorta Sep 2, 2024
fbd3667
oneAPI.synchronize
pvillacorta Sep 2, 2024
ffe244e
synchronize with no arguments
pvillacorta Sep 2, 2024
6c9bfcb
Fix typo
pvillacorta Sep 2, 2024
62b4f7a
Dummy sum again
pvillacorta Sep 3, 2024
c71fee8
KA.synchronize
pvillacorta Sep 3, 2024
28c3047
`synchronize` between `max.` and `min.`
pvillacorta Sep 3, 2024
f6914b5
Solve variable name conflict
pvillacorta Sep 3, 2024
789f907
2 synchronize
pvillacorta Sep 3, 2024
590cf68
Try another function definition using a mask
pvillacorta Sep 3, 2024
db0cc3f
Fix typo
pvillacorta Sep 3, 2024
cea2d80
Try avoiding the use of `min` or `max`
pvillacorta Sep 3, 2024
12c6a11
Add synchronize now
pvillacorta Sep 3, 2024
61f222e
Try to isolate `unit_time`
pvillacorta Sep 3, 2024
5d235e2
KomaMRIBase.unit_time
pvillacorta Sep 3, 2024
67c788f
Now the method is amiguous
pvillacorta Sep 3, 2024
087c474
Try again to isolate the problem
pvillacorta Sep 3, 2024
6139754
Print the comprobation instead of using @test
pvillacorta Sep 3, 2024
e199fb3
@test true
pvillacorta Sep 3, 2024
33766e2
Delete loop
pvillacorta Sep 3, 2024
5c4c27d
Pass results to cpu and try to recreate simulator's behaviour
pvillacorta Sep 3, 2024
bcf0670
Loop and reset ux in every iteration by broadcasting
pvillacorta Sep 3, 2024
7b1e0d7
Solve bug
pvillacorta Sep 3, 2024
ee18d14
Reorganize Functors.jl
pvillacorta Sep 3, 2024
8655bd1
Try one last time
pvillacorta Sep 3, 2024
92e634f
Make sure `_ = t` works
pvillacorta Sep 3, 2024
4120a19
`_ = copy(t)`
pvillacorta Sep 3, 2024
97048f0
`_ = sum(t)`
pvillacorta Sep 3, 2024
3e5b845
Try as it is in the main branch, as it is not working now
pvillacorta Sep 4, 2024
2a76c45
Try sum before calling `_unit_time`
pvillacorta Sep 4, 2024
8b7797e
println
pvillacorta Sep 4, 2024
c40444a
println where it was at the beggining
pvillacorta Sep 4, 2024
39becd2
Println inside `displacement_y!`
pvillacorta Sep 4, 2024
5a410a1
println inside `resample`
pvillacorta Sep 4, 2024
f77429c
Printing also interpolation result, not sure about what is the problem
pvillacorta Sep 4, 2024
c5e099d
More iterations, print bigger @view
pvillacorta Sep 4, 2024
616f7ab
@view 1:3
pvillacorta Sep 4, 2024
7ce69f7
not print time
pvillacorta Sep 4, 2024
23502d4
Not print uy
pvillacorta Sep 4, 2024
b823513
Try to reproduce the error
pvillacorta Sep 4, 2024
9de93c9
print only uy again
pvillacorta Sep 4, 2024
14f48b1
Correct bug in `minimum` function
pvillacorta Sep 4, 2024
1aa52ab
Print time
pvillacorta Sep 4, 2024
16c13ec
Print u and t inside resample
pvillacorta Sep 4, 2024
fad91b3
Timeout 15 minutes, 12 iterations
pvillacorta Sep 4, 2024
170d3ab
Timeout 30 minutes
pvillacorta Sep 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 33 additions & 24 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,39 @@
steps:
- label: ":pipeline: Launch Tests"
# - label: ":pipeline: Upload NoMotion Tests"
# env:
# TEST_GROUP: "nomotion"
# command: buildkite-agent pipeline upload .buildkite/runtests.yml
# agents:
# queue: "juliagpu"

- label: ":pipeline: Upload Motion Tests"
env:
TEST_GROUP: "motion"
command: buildkite-agent pipeline upload .buildkite/runtests.yml
agents:
queue: "juliagpu"

- label: ":pipeline: Launch Benchmarks"
if: build.message !~ /skip benchmarks/
agents:
queue: "juliagpu"
plugins:
- monorepo-diff#v1.0.1:
diff: "git diff --name-only HEAD~1"
interpolation: false
watch:
- path:
- "KomaMRICore/src/**/*"
- "KomaMRICore/ext/**/*"
- "KomaMRICore/Project.toml"
- "KomaMRIBase/src/**/*"
- "KomaMRIBase/Project.toml"
- "benchmarks/**/*"
- ".buildkite/**/*"
- ".github/workflows/Benchmark.yml"
- "Project.toml"
config:
command: "buildkite-agent pipeline upload .buildkite/runbenchmarks.yml"
agents:
queue: "juliagpu"
# - label: ":pipeline: Launch Benchmarks"
# if: build.message !~ /skip benchmarks/
# agents:
# queue: "juliagpu"
# plugins:
# - monorepo-diff#v1.0.1:
# diff: "git diff --name-only HEAD~1"
# interpolation: false
# watch:
# - path:
# - "KomaMRICore/src/**/*"
# - "KomaMRICore/ext/**/*"
# - "KomaMRICore/Project.toml"
# - "KomaMRIBase/src/**/*"
# - "KomaMRIBase/Project.toml"
# - "benchmarks/**/*"
# - ".buildkite/**/*"
# - ".github/workflows/Benchmark.yml"
# - "Project.toml"
# config:
# command: "buildkite-agent pipeline upload .buildkite/runbenchmarks.yml"
# agents:
# queue: "juliagpu"

246 changes: 128 additions & 118 deletions .buildkite/runtests.yml
Original file line number Diff line number Diff line change
@@ -1,138 +1,146 @@
steps:
- group: ":julia: Tests"
- group: ":julia: ($TEST_GROUP) Tests"
steps:
- label: "CPU: Run tests on v{{matrix.version}}"
matrix:
setup:
version:
- "1.9"
- "1"
plugins:
- JuliaCI/julia#v1:
version: "{{matrix.version}}"
- JuliaCI/julia-coverage#v1:
codecov: true
dirs:
- KomaMRICore/src
- KomaMRICore/ext
command: |
julia -e 'println("--- :julia: Instantiating project")
using Pkg
Pkg.develop([
PackageSpec(path=pwd(), subdir="KomaMRIBase"),
PackageSpec(path=pwd(), subdir="KomaMRICore"),
])'
# - label: "CPU: Run tests on v{{matrix.version}}"
# matrix:
# setup:
# version:
# - "1.9"
# - "1"
# plugins:
# - JuliaCI/julia#v1:
# version: "{{matrix.version}}"
# - JuliaCI/julia-coverage#v1:
# codecov: true
# dirs:
# - KomaMRICore/src
# - KomaMRICore/ext
# env:
# TEST_GROUP: $TEST_GROUP
# command: |
# julia -e 'println("--- :julia: Instantiating project")
# using Pkg
# Pkg.develop([
# PackageSpec(path=pwd(), subdir="KomaMRIBase"),
# PackageSpec(path=pwd(), subdir="KomaMRICore"),
# ])'

julia -e 'println("--- :julia: Running tests")
using Pkg
Pkg.test("KomaMRICore"; coverage=true, julia_args=`--threads=auto`)'
agents:
queue: "juliagpu"
timeout_in_minutes: 60
# julia -e 'println("--- :julia: Running tests")
# using Pkg
# Pkg.test("KomaMRICore"; coverage=true, julia_args=`--threads=auto`)'
# agents:
# queue: "juliagpu"
# timeout_in_minutes: 60

- label: "AMDGPU: Run tests on v{{matrix.version}}"
matrix:
setup:
version:
- "1"
plugins:
- JuliaCI/julia#v1:
version: "{{matrix.version}}"
- JuliaCI/julia-coverage#v1:
codecov: true
dirs:
- KomaMRICore/src
- KomaMRICore/ext
command: |
julia -e 'println("--- :julia: Instantiating project")
using Pkg
Pkg.develop([
PackageSpec(path=pwd(), subdir="KomaMRIBase"),
PackageSpec(path=pwd(), subdir="KomaMRICore"),
])'
# - label: "AMDGPU: Run tests on v{{matrix.version}}"
# matrix:
# setup:
# version:
# - "1"
# plugins:
# - JuliaCI/julia#v1:
# version: "{{matrix.version}}"
# - JuliaCI/julia-coverage#v1:
# codecov: true
# dirs:
# - KomaMRICore/src
# - KomaMRICore/ext
# env:
# TEST_GROUP: $TEST_GROUP
# command: |
# julia -e 'println("--- :julia: Instantiating project")
# using Pkg
# Pkg.develop([
# PackageSpec(path=pwd(), subdir="KomaMRIBase"),
# PackageSpec(path=pwd(), subdir="KomaMRICore"),
# ])'

julia --project=KomaMRICore/test -e 'println("--- :julia: Add AMDGPU to test environment")
using Pkg
Pkg.add("AMDGPU")'
# julia --project=KomaMRICore/test -e 'println("--- :julia: Add AMDGPU to test environment")
# using Pkg
# Pkg.add("AMDGPU")'

julia -e 'println("--- :julia: Running tests")
using Pkg
Pkg.test("KomaMRICore"; coverage=true, test_args=["AMDGPU"])'
agents:
queue: "juliagpu"
rocm: "*"
timeout_in_minutes: 60
# julia -e 'println("--- :julia: Running tests")
# using Pkg
# Pkg.test("KomaMRICore"; coverage=true, test_args=["AMDGPU", ])'
# agents:
# queue: "juliagpu"
# rocm: "*"
# timeout_in_minutes: 60

- label: "CUDA: Run tests on v{{matrix.version}}"
matrix:
setup:
version:
- "1.9"
- "1"
plugins:
- JuliaCI/julia#v1:
version: "{{matrix.version}}"
- JuliaCI/julia-coverage#v1:
codecov: true
dirs:
- KomaMRICore/src
- KomaMRICore/ext
command: |
julia -e 'println("--- :julia: Instantiating project")
using Pkg
Pkg.develop([
PackageSpec(path=pwd(), subdir="KomaMRIBase"),
PackageSpec(path=pwd(), subdir="KomaMRICore"),
])'
# - label: "CUDA: Run tests on v{{matrix.version}}"
# matrix:
# setup:
# version:
# - "1.9"
# - "1"
# plugins:
# - JuliaCI/julia#v1:
# version: "{{matrix.version}}"
# - JuliaCI/julia-coverage#v1:
# codecov: true
# dirs:
# - KomaMRICore/src
# - KomaMRICore/ext
# env:
# TEST_GROUP: $TEST_GROUP
# command: |
# julia -e 'println("--- :julia: Instantiating project")
# using Pkg
# Pkg.develop([
# PackageSpec(path=pwd(), subdir="KomaMRIBase"),
# PackageSpec(path=pwd(), subdir="KomaMRICore"),
# ])'

julia --project=KomaMRICore/test -e 'println("--- :julia: Add CUDA to test environment")
using Pkg
Pkg.add("CUDA")'
# julia --project=KomaMRICore/test -e 'println("--- :julia: Add CUDA to test environment")
# using Pkg
# Pkg.add("CUDA")'

julia -e 'println("--- :julia: Running tests")
using Pkg
Pkg.test("KomaMRICore"; coverage=true, test_args=["CUDA"])'
agents:
queue: "juliagpu"
cuda: "*"
timeout_in_minutes: 60
# julia -e 'println("--- :julia: Running tests")
# using Pkg
# Pkg.test("KomaMRICore"; coverage=true, test_args=["CUDA"])'
# agents:
# queue: "juliagpu"
# cuda: "*"
# timeout_in_minutes: 60

- label: "Metal: Run tests on v{{matrix.version}}"
matrix:
setup:
version:
- "1.9"
- "1"
plugins:
- JuliaCI/julia#v1:
version: "{{matrix.version}}"
command: |
julia -e 'println("--- :julia: Instantiating project")
using Pkg
Pkg.develop([
PackageSpec(path=pwd(), subdir="KomaMRIBase"),
PackageSpec(path=pwd(), subdir="KomaMRICore"),
])'
# - label: "Metal: Run tests on v{{matrix.version}}"
# matrix:
# setup:
# version:
# - "1.9"
# - "1"
# plugins:
# - JuliaCI/julia#v1:
# version: "{{matrix.version}}"
# env:
# TEST_GROUP: $TEST_GROUP
# command: |
# julia -e 'println("--- :julia: Instantiating project")
# using Pkg
# Pkg.develop([
# PackageSpec(path=pwd(), subdir="KomaMRIBase"),
# PackageSpec(path=pwd(), subdir="KomaMRICore"),
# ])'

julia --project=KomaMRICore/test -e 'println("--- :julia: Add Metal to test environment")
using Pkg
Pkg.add("Metal")'
# julia --project=KomaMRICore/test -e 'println("--- :julia: Add Metal to test environment")
# using Pkg
# Pkg.add("Metal")'

julia -e 'println("--- :julia: Running tests")
using Pkg
Pkg.test("KomaMRICore"; test_args=["Metal"])'
agents:
queue: "juliaecosystem"
os: "macos"
arch: "aarch64"
timeout_in_minutes: 60
# julia -e 'println("--- :julia: Running tests")
# using Pkg
# Pkg.test("KomaMRICore"; test_args=["Metal"])'
# agents:
# queue: "juliaecosystem"
# os: "macos"
# arch: "aarch64"
# timeout_in_minutes: 60

- label: "oneAPI: Run tests on v{{matrix.version}}"
matrix:
setup:
version:
- "1.9"
- "1"
# - "1"
plugins:
- JuliaCI/julia#v1:
version: "{{matrix.version}}"
Expand All @@ -141,6 +149,8 @@ steps:
dirs:
- KomaMRICore/src
- KomaMRICore/ext
env:
TEST_GROUP: $TEST_GROUP
command: |
julia -e 'println("--- :julia: Instantiating project")
using Pkg
Expand All @@ -159,7 +169,7 @@ steps:
agents:
queue: "juliagpu"
intel: "*"
timeout_in_minutes: 60
timeout_in_minutes: 30

env:
CI: BUILDKITE
Expand Down
16 changes: 9 additions & 7 deletions KomaMRIBase/src/KomaMRIBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@ include("datatypes/sequence/ADC.jl")
include("timing/KeyValuesCalculation.jl")
include("datatypes/Sequence.jl")
include("datatypes/sequence/Delay.jl")
# Motion
include("motion/MotionSet.jl")
# Phantom
include("datatypes/Phantom.jl")
# Simulator
include("datatypes/simulation/DiscreteSequence.jl")
include("timing/TimeStepCalculation.jl")
include("timing/TrapezoidalIntegration.jl")
include("timing/UnitTime.jl")

# Main
export γ # gyro-magnetic ratio [Hz/T]
Expand All @@ -47,12 +48,13 @@ export kfoldperm, trapz, cumtrapz
# Phantom
export brain_phantom2D, brain_phantom3D, pelvis_phantom2D, heart_phantom
# Motion
export MotionModel
export NoMotion, SimpleMotion, ArbitraryMotion
export SimpleMotionType
export Translation, Rotation, HeartBeat
export PeriodicTranslation, PeriodicRotation, PeriodicHeartBeat
export get_spin_coords
export MotionList, NoMotion, Motion
export Translate, TranslateX, TranslateY, TranslateZ
export Rotate, RotateX, RotateY, RotateZ
export HeartBeat, Path, FlowPath
export TimeRange, Periodic
export SpinRange, AllSpins
export sort_motions!, get_spin_coords
# Secondary
export get_kspace, rotx, roty, rotz
# Additionals
Expand Down
Loading
Loading