Skip to content

Commit

Permalink
Correct memory kind checks
Browse files Browse the repository at this point in the history
  • Loading branch information
eschnett committed Jul 17, 2024
1 parent eca83e2 commit dd62af7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IndexSpaces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -687,8 +687,8 @@ function memory_index(reg_layout::Layout{Physics,Machine}, mem_layout::Layout{Ph
addrs64 = Code[]
for (phys, mach) in mem_layout.dict
# Ensure that we are mapping to the right kind of memory
mach isa Memory && @assert is_shared
mach isa Union{Block,Shared,Loop,UnrolledLoop} && @assert is_memory
mach isa Union{Block,Shared,Loop,UnrolledLoop} && @assert is_shared
mach isa Memory && @assert is_memory
# Only memory addresses contribute
!(mach isa Union{Shared,Memory}) && continue

Expand Down

0 comments on commit dd62af7

Please sign in to comment.