Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Wilson <[email protected]>
Co-authored-by: Nghia Truong <[email protected]>
  • Loading branch information
3 people authored Dec 13, 2023
1 parent 62ff4f7 commit 10bfe09
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/main/cpp/src/cast_string.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022-2023-2023, NVIDIA CORPORATION.
* Copyright (c) 2022-2023, 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 @@ -117,7 +117,7 @@ std::unique_ptr<cudf::column> string_to_float(

std::unique_ptr<cudf::column> format_float(
cudf::column_view const& input,
int digits,
int const digits,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());

Expand Down
9 changes: 5 additions & 4 deletions src/main/cpp/src/format_float.cu
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <cudf/strings/detail/strings_children.cuh>
#include <cudf/utilities/type_dispatcher.hpp>


#include <rmm/cuda_stream_view.hpp>
#include <rmm/exec_policy.hpp>

Expand Down Expand Up @@ -75,7 +76,7 @@ struct format_float_fn {
struct dispatch_format_float_fn {
template <typename FloatType, CUDF_ENABLE_IF(std::is_floating_point_v<FloatType>)>
std::unique_ptr<cudf::column> operator()(cudf::column_view const& floats,
int digits,
int const digits,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr) const
{
Expand All @@ -97,7 +98,7 @@ struct dispatch_format_float_fn {
// non-float types throw an exception
template <typename T, CUDF_ENABLE_IF(not std::is_floating_point_v<T>)>
std::unique_ptr<cudf::column> operator()(cudf::column_view const&,
int,
int const,
rmm::cuda_stream_view,
rmm::mr::device_memory_resource*) const
{
Expand All @@ -109,7 +110,7 @@ struct dispatch_format_float_fn {

// This will convert all float column types into a strings column.
std::unique_ptr<cudf::column> format_float(cudf::column_view const& floats,
int digits,
int const digits,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
Expand All @@ -120,7 +121,7 @@ std::unique_ptr<cudf::column> format_float(cudf::column_view const& floats,

// external API
std::unique_ptr<cudf::column> format_float(cudf::column_view const& floats,
int digits,
int const digits,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/nvidia/spark/rapids/jni/CastStrings.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022-2023-2023, NVIDIA CORPORATION.
* Copyright (c) 2022-2023, 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

0 comments on commit 10bfe09

Please sign in to comment.