Skip to content

Commit c2451ad

Browse files
Merge pull request #1932 from CliMA/ck/DL_size
Refactor DataLayouts
2 parents 7ab0acf + 60e313d commit c2451ad

File tree

4 files changed

+199
-453
lines changed

4 files changed

+199
-453
lines changed

ext/cuda/data_layouts_copyto.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function knl_copyto_flat!(dest::AbstractData, bc, us)
9797
end
9898

9999
function cuda_copyto!(dest::AbstractData, bc)
100-
(_, _, Nv, Nh) = DataLayouts.universal_size(dest)
100+
(_, _, Nv, _, Nh) = DataLayouts.universal_size(dest)
101101
us = DataLayouts.UniversalSize(dest)
102102
if Nv > 0 && Nh > 0
103103
auto_launch!(knl_copyto_flat!, (dest, bc, us), dest; auto = true)

ext/cuda/data_layouts_fill.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function knl_fill_flat!(dest::AbstractData, val, us)
1111
end
1212

1313
function cuda_fill!(dest::AbstractData, val)
14-
(_, _, Nv, Nh) = DataLayouts.universal_size(dest)
14+
(_, _, Nv, _, Nh) = DataLayouts.universal_size(dest)
1515
us = DataLayouts.UniversalSize(dest)
1616
if Nv > 0 && Nh > 0
1717
auto_launch!(knl_fill_flat!, (dest, val, us), dest; auto = true)

0 commit comments

Comments
 (0)