From dd83268506beb3d257740c28e7a7abb099beb05f Mon Sep 17 00:00:00 2001 From: Anton Smirnov Date: Thu, 10 Oct 2024 00:25:35 +0300 Subject: [PATCH] Remove unnecessary Const --- src/sort/merge_sort.jl | 4 ++-- src/sort/merge_sort_by_key.jl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sort/merge_sort.jl b/src/sort/merge_sort.jl index d33fbc0..f8a0c19 100644 --- a/src/sort/merge_sort.jl +++ b/src/sort/merge_sort.jl @@ -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,) @@ -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] diff --git a/src/sort/merge_sort_by_key.jl b/src/sort/merge_sort_by_key.jl index bb8d356..536b480 100644 --- a/src/sort/merge_sort_by_key.jl +++ b/src/sort/merge_sort_by_key.jl @@ -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,) @@ -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]