Skip to content

Commit

Permalink
update Diffusion test project to use N kw
Browse files Browse the repository at this point in the history
  • Loading branch information
omlins committed Jan 4, 2024
1 parent f3f9436 commit 7346658
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_projects/Diffusion/src/backends/memcopyXD.jl
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
@parallel_indices (I...) ndims=(2,3) function memcopy!(B::Data.Array{T,$ndims}, A::Data.Array{T,$ndims}) where {T}
@parallel_indices (I...) ndims=(2,3) N=ndims function memcopy!(B::Data.Array{T,N}, A::Data.Array{T,N}) where {T}
B[I...] = A[I...]
return
end


# NOTE: this is equivalent to the following:

# @parallel_indices (I...) ndims=2 function memcopy!(B::Data.Array{T,$ndims}, A::Data.Array{T,$ndims}) where {T}
# @parallel_indices (I...) ndims=2 N=2 function memcopy!(B::Data.Array{T,N}, A::Data.Array{T,N}) where {T}
# B[I...] = A[I...]
# return
# end

# @parallel_indices (I...) ndims=3 function memcopy!(B::Data.Array{T,$ndims}, A::Data.Array{T,$ndims}) where {T}
# @parallel_indices (I...) ndims=3 N=3 function memcopy!(B::Data.Array{T,N}, A::Data.Array{T,N}) where {T}
# B[I...] = A[I...]
# return
# end
Expand Down

0 comments on commit 7346658

Please sign in to comment.