Skip to content

Commit

Permalink
Mark all cugraph etl CUDA kernels with internal linkage
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmaynard committed Jan 18, 2024
1 parent ffcfbcc commit 9bbcfaa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions cpp/libcugraph_etl/include/hash/helper_functions.cuh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017-2022, NVIDIA CORPORATION.
* Copyright (c) 2017-2024, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -131,7 +131,7 @@ __forceinline__ __device__ void store_pair_vectorized(pair_type* __restrict__ co
}

template <typename value_type, typename size_type, typename key_type, typename elem_type>
__global__ void init_hashtbl(value_type* __restrict__ const hashtbl_values,
__global__ static void init_hashtbl(value_type* __restrict__ const hashtbl_values,
const size_type n,
const key_type key_val,
const elem_type elem_val)
Expand Down
22 changes: 11 additions & 11 deletions cpp/libcugraph_etl/src/renumbering.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022-2023, NVIDIA CORPORATION.
* Copyright (c) 2022-2024, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -270,7 +270,7 @@ __device__ __inline__ int32_t validate_ht_col_insert(volatile int32_t* ptr_col)
return col;
}

__global__ void concat_and_create_histogram(int8_t* col_1,
__global__ static void concat_and_create_histogram(int8_t* col_1,
int32_t* offset_1,
int8_t* col_2,
int32_t* offset_2,
Expand Down Expand Up @@ -349,7 +349,7 @@ __global__ void concat_and_create_histogram(int8_t* col_1,
}
}

__global__ void concat_and_create_histogram_2(int8_t* col_1,
__global__ static void concat_and_create_histogram_2(int8_t* col_1,
int32_t* offset_1,
int8_t* col_2,
int32_t* offset_2,
Expand Down Expand Up @@ -452,7 +452,7 @@ __global__ void concat_and_create_histogram_2(int8_t* col_1,
}

template <typename T>
__global__ void set_src_vertex_idx(int8_t* col_1,
__global__ static void set_src_vertex_idx(int8_t* col_1,
int32_t* offset_1,
int8_t* col_2,
int32_t* offset_2,
Expand Down Expand Up @@ -509,7 +509,7 @@ __global__ void set_src_vertex_idx(int8_t* col_1,
}

template <typename T>
__global__ void set_dst_vertex_idx(int8_t* col_1,
__global__ static void set_dst_vertex_idx(int8_t* col_1,
int32_t* offset_1,
int8_t* col_2,
int32_t* offset_2,
Expand Down Expand Up @@ -585,7 +585,7 @@ __global__ void set_dst_vertex_idx(int8_t* col_1,
}
}

__global__ void create_mapping_histogram(uint32_t* hash_value,
__global__ static void create_mapping_histogram(uint32_t* hash_value,
str_hash_value* payload,
cudf_map_type hash_map,
accum_type count)
Expand All @@ -595,7 +595,7 @@ __global__ void create_mapping_histogram(uint32_t* hash_value,
if (idx < count) { auto it = hash_map.insert(thrust::make_pair(hash_value[idx], payload[idx])); }
}

__global__ void assign_histogram_idx(cudf_map_type cuda_map_obj,
__global__ static void assign_histogram_idx(cudf_map_type cuda_map_obj,
size_t slot_count,
str_hash_value* key,
uint32_t* value,
Expand All @@ -621,7 +621,7 @@ __global__ void assign_histogram_idx(cudf_map_type cuda_map_obj,
}
}

__global__ void set_vertex_indices(str_hash_value* ht_value_payload, accum_type count)
__global__ static void set_vertex_indices(str_hash_value* ht_value_payload, accum_type count)
{
accum_type tid = threadIdx.x + blockIdx.x * blockDim.x;
// change count_ to renumber_idx
Expand All @@ -630,7 +630,7 @@ __global__ void set_vertex_indices(str_hash_value* ht_value_payload, accum_type
}
}

__global__ void set_output_col_offsets(str_hash_value* row_col_pair,
__global__ static void set_output_col_offsets(str_hash_value* row_col_pair,
int32_t* out_col1_offset,
int32_t* out_col2_offset,
int dst_pair_match,
Expand All @@ -653,7 +653,7 @@ __global__ void set_output_col_offsets(str_hash_value* row_col_pair,
}
}

__global__ void offset_buffer_size_comp(int32_t* out_col1_length,
__global__ static void offset_buffer_size_comp(int32_t* out_col1_length,
int32_t* out_col2_length,
int32_t* out_col1_offsets,
int32_t* out_col2_offsets,
Expand All @@ -673,7 +673,7 @@ __global__ void offset_buffer_size_comp(int32_t* out_col1_length,
}
}

__global__ void select_unrenumber_string(str_hash_value* idx_to_col_row,
__global__ static void select_unrenumber_string(str_hash_value* idx_to_col_row,
int32_t total_elements,
int8_t* src_col1,
int8_t* src_col2,
Expand Down

0 comments on commit 9bbcfaa

Please sign in to comment.