You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/datadeps/remainders.jl
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -143,6 +143,7 @@ function compute_remainder_for_arg!(state::DataDepsState,
143
143
push!(target_ainfos, LocalMemorySpan.(spans))
144
144
end
145
145
nspans =length(first(target_ainfos))
146
+
@assertall(==(nspans), length.(target_ainfos)) "Aliasing info for $(typeof(arg_w.arg))[$(arg_w.dep_mod)] has different number of spans in different memory spaces"
146
147
147
148
#FIXME: This is a hack to ensure that we don't miss any history generated by aliasing(...)
148
149
for entry in state.arg_history[arg_w]
@@ -433,16 +434,18 @@ end
433
434
434
435
# Main copy function for RemainderAliasing
435
436
functionmove!(dep_mod::RemainderAliasing{S}, to_space::MemorySpace, from_space::MemorySpace, to::Chunk, from::Chunk) where S
437
+
#TODO: Support direct copy between GPU memory spaces
438
+
436
439
# Copy the data from the source object
437
440
copies =remotecall_fetch(root_worker_id(from_space), dep_mod) do dep_mod
438
441
len =sum(span_tuple->span_len(span_tuple[1]), dep_mod.spans)
0 commit comments