Skip to content

Commit 32136f6

Browse files
committed
datadeps: Improve assertion
1 parent 9d8a911 commit 32136f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datadeps.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ function generate_slot!(state::DataDepsState, dest_space, data)
406406
data_converted = move(from_proc, to_proc, data)
407407
data_chunk = tochunk(data_converted, to_proc)
408408
@assert processor(data_chunk) in processors(dest_space)
409-
@assert memory_space(data_chunk) == memory_space(data_converted)
409+
@assert memory_space(data_converted) == memory_space(data_chunk) "space mismatch! $(memory_space(data_converted)) != $(memory_space(data_chunk)) ($(typeof(data_converted)) vs. $(typeof(data_chunk))), spaces ($orig_space -> $dest_space)"
410410
@assert orig_space != memory_space(data_chunk) "space preserved! $orig_space != $(memory_space(data_chunk)) ($(typeof(data)) vs. $(typeof(data_chunk))), spaces ($orig_space -> $dest_space)"
411411
return data_chunk
412412
end

0 commit comments

Comments
 (0)