Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/accumulate/accumulate_1d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ end
# NOTE: shmem_size MUST be greater than 2 * block_size
# NOTE: block_size MUST be a power of 2
len = length(v)
block_size = @groupsize()[1]
@uniform block_size = @groupsize()[1]
temp = @localmem eltype(v) (0x2 * block_size + conflict_free_offset(0x2 * block_size),)

# NOTE: for many index calculations in this library, computation using zero-indexing leads to
Expand Down
2 changes: 1 addition & 1 deletion src/accumulate/accumulate_nd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ end
length_dims = vsizes[dims]
length_outer = length(v) ÷ length_dims

block_size = @groupsize()[1]
@uniform block_size = @groupsize()[1]

temp = @localmem eltype(v) (0x2 * block_size + conflict_free_offset(0x2 * block_size),)
running_prefix = @localmem eltype(v) (1,)
Expand Down
2 changes: 1 addition & 1 deletion src/reduce/mapreduce_1d.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@kernel inbounds=true cpu=false function _mapreduce_block!(@Const(src), dst, f, op, init)

N = @groupsize()[1]
@uniform N = @groupsize()[1]
sdata = @localmem eltype(dst) (N,)

len = length(src)
Expand Down
2 changes: 1 addition & 1 deletion src/reduce/mapreduce_nd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ end

ndims = length(src_sizes)

N = @groupsize()[1]
@uniform N = @groupsize()[1]
sdata = @localmem eltype(dst) (N,)

# NOTE: for many index calculations in this library, computation using zero-indexing leads to
Expand Down
2 changes: 1 addition & 1 deletion src/reduce/reduce_1d.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@kernel inbounds=true cpu=false function _reduce_block!(@Const(src), dst, op, init)

N = @groupsize()[1]
@uniform N = @groupsize()[1]
sdata = @localmem eltype(dst) (N,)

len = length(src)
Expand Down
2 changes: 1 addition & 1 deletion src/reduce/reduce_nd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ end

ndims = length(src_sizes)

N = @groupsize()[1]
@uniform N = @groupsize()[1]
sdata = @localmem eltype(dst) (N,)

# NOTE: for many index calculations in this library, computation using zero-indexing leads to
Expand Down
2 changes: 1 addition & 1 deletion src/sort/merge_sort.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@kernel inbounds=true function _merge_sort_block!(vec, comp)

N = @groupsize()[1]
@uniform N = @groupsize()[1]
s_buf = @localmem eltype(vec) (N * 0x2,)

T = eltype(vec)
Expand Down
2 changes: 1 addition & 1 deletion src/sort/merge_sort_by_key.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@kernel inbounds=true function _merge_sort_by_key_block!(keys, values, comp)

N = @groupsize()[1]
@uniform N = @groupsize()[1]
s_keys = @localmem eltype(keys) (N * 0x2,)
s_values = @localmem eltype(values) (N * 0x2,)

Expand Down
Loading