Skip to content

Commit

Permalink
Remove unnecessary Const
Browse files Browse the repository at this point in the history
  • Loading branch information
pxl-th committed Oct 9, 2024
1 parent 7511aec commit dd83268
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/sort/merge_sort.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@kernel inbounds=true function _merge_sort_block!(vec, @Const(comp))
@kernel inbounds=true function _merge_sort_block!(vec, comp)

N = @groupsize()[1]
s_buf = @localmem eltype(vec) (N * 2,)
Expand Down Expand Up @@ -75,7 +75,7 @@
end


@kernel inbounds=true function _merge_sort_global!(@Const(vec_in), vec_out, @Const(comp), @Const(half_size_group))
@kernel inbounds=true function _merge_sort_global!(@Const(vec_in), vec_out, comp, half_size_group)

len = length(vec_in)
N = @groupsize()[1]
Expand Down
4 changes: 2 additions & 2 deletions src/sort/merge_sort_by_key.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@kernel inbounds=true function _merge_sort_by_key_block!(keys, values, @Const(comp))
@kernel inbounds=true function _merge_sort_by_key_block!(keys, values, comp)

N = @groupsize()[1]
s_keys = @localmem eltype(keys) (N * 2,)
Expand Down Expand Up @@ -99,7 +99,7 @@ end

@kernel inbounds=true function _merge_sort_by_key_global!(@Const(keys_in), keys_out,
@Const(values_in), values_out,
@Const(comp), @Const(half_size_group))
comp, half_size_group)

len = length(keys_in)
N = @groupsize()[1]
Expand Down

0 comments on commit dd83268

Please sign in to comment.