Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Optimize ArbitraryMotion (continuation) #408
Optimize ArbitraryMotion (continuation) #408
Changes from all commits
5120dee
87adbe0
3506d03
60e5743
9b2a9c2
1ee2bb8
b70ca80
a387d22
97eb2a9
7c62afa
83e0527
d282f9f
b82fa19
352ebbb
c8e5beb
8414916
49bf6a8
4d41071
c8a754b
f044ede
ed0ad5e
9ef5d81
4010c2d
596379e
c9f0980
368cec2
5050c46
9ab9abb
b8a2b83
b4b2307
1733ba6
ed7afd2
cfeddb2
47ccfc0
e10474b
58756f9
8dfaf1d
6134911
c50da52
a58485b
115815f
eeaf970
2bce2e4
872d16a
7172839
5bc95ef
57149eb
e040a0f
079a84c
c9a4dbb
3a0862e
f1186c3
37cdfae
4df277b
ba92e75
10a4aa3
3d45b55
0310cab
1315be2
de1da32
513ccf9
4107c1c
95a9fca
58df3e6
ba4b468
3e16df7
87c7b4f
75918fe
fbac368
e7b5861
fa97756
9288e04
fe98989
d12f81d
db425e6
409a719
8085239
ce91eb8
81160e0
eadf2fa
7112b64
aad423a
781c051
d6f5da7
eac3e87
f1e3dee
723b418
0348a48
206fc37
f7683a5
c7f4a3b
10b814e
0f4a85b
431c164
cfa1165
cbb1710
f082e99
f336659
ade4138
b9bfbfe
88e7451
2ea2d98
f06cf21
f9908d7
529a250
250f4f2
1e8d8d7
ba82913
5c6fe49
639d9e4
df33c54
4eaac2a
c26bd4b
c5a49ae
5dcc8b8
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 70 in KomaMRIBase/src/datatypes/phantom/motion/ArbitraryMotion.jl
Codecov / codecov/patch
KomaMRIBase/src/datatypes/phantom/motion/ArbitraryMotion.jl#L70
Check warning on line 73 in KomaMRIBase/src/datatypes/phantom/motion/ArbitraryMotion.jl
Codecov / codecov/patch
KomaMRIBase/src/datatypes/phantom/motion/ArbitraryMotion.jl#L73
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is
id .= 1:Ns
not enough?Are the
copyto!(collect(
necessary? They are a little bit ugly.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like metal and oneAPI don't have this operation defined for ranges or something like that.
When assigning wit
=.
and a range, the following error appears (see this):ERROR: LoadError: InvalidIRError: compiling MethodInstance for (::Metal.var"#broadcast_linear#202")(::Metal.MtlDeviceVector{Float32, 1}, ::Base.Broadcast.Broadcasted{Metal.MtlArrayStyle{1, Metal.MTL.Private}, Tuple{Base.OneTo{Int64}}, typeof(identity), Tuple{Base.Broadcast.Extruded{StepRangeLen{Float32, Float64, Float64, Int64}, Tuple{Bool}, Tuple{Int64}}}}) resulted in invalid LLVM IR
From here, it looks like
=.
is defined for assigning scalars, but I think it's not the case for ranges.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I think submitting a few issues to Metal/OneAPI would be good. I don't know what the MWE is, @rkierulf says these work
id .= range(oneunit(T), T(Ns), Ns)
xt, yt, zt = x .+ 0*t, y .+ 0*t, z .+ 0*t