Skip to content

Commit

Permalink
Add more const
Browse files Browse the repository at this point in the history
  • Loading branch information
JayjeetAtGithub committed Jul 17, 2024
1 parent 3971e4c commit f635b71
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cpp/benchmarks/common/cudf_datagen/dbgen.cu
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,12 @@ void generate_orders(int64_t scale_factor)
* @brief Generate the `partsupp` table
*
* @param scale_factor The scale factor to use
* @param stream The CUDA stream to use
* @param mr The memory resource to use
*/
void generate_partsupp(int64_t scale_factor)
void generate_partsupp(int64_t const& scale_factor,
rmm::cuda_stream_view stream = cudf::get_default_stream(),
rmm::device_async_resource_ref mr = rmm::mr::get_current_device_resource())
{
cudf::size_type num_rows_part = 200000 * scale_factor;
cudf::size_type num_rows = 800000 * scale_factor;
Expand Down Expand Up @@ -419,7 +423,7 @@ std::unique_ptr<cudf::column> calc_p_retailprice(cudf::column_view const& p_part
* @param stream The CUDA stream to use
* @param mr The memory resource to use
*/
void generate_part(int64_t scale_factor,
void generate_part(int64_t const& scale_factor,
rmm::cuda_stream_view stream = cudf::get_default_stream(),
rmm::device_async_resource_ref mr = rmm::mr::get_current_device_resource())
{
Expand Down Expand Up @@ -635,7 +639,7 @@ void generate_customer(int64_t const& scale_factor,
* @param stream The CUDA stream to use
* @param mr The memory resource to use
*/
void generate_supplier(int64_t scale_factor,
void generate_supplier(int64_t const& scale_factor,
rmm::cuda_stream_view stream = cudf::get_default_stream(),
rmm::device_async_resource_ref mr = rmm::mr::get_current_device_resource())
{
Expand Down

0 comments on commit f635b71

Please sign in to comment.