Skip to content

Commit

Permalink
More fix for text APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
PointKernel committed Dec 20, 2024
1 parent 36b9322 commit 18526af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions cpp/src/text/minhash.cu
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@
#include <thrust/sequence.h>
#include <thrust/sort.h>

#include <limits>

namespace nvtext {
namespace detail {
namespace {
Expand Down
5 changes: 3 additions & 2 deletions cpp/src/text/subword/data_normalizer.cu
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <rmm/cuda_stream_view.hpp>
#include <rmm/exec_policy.hpp>

#include <cuda/std/functional>
#include <thrust/for_each.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/pair.h>
Expand Down Expand Up @@ -134,8 +135,8 @@ extract_code_points_from_utf8(unsigned char const* strings,
constexpr uint8_t max_utf8_blocks_for_char = 4;
uint8_t utf8_blocks[max_utf8_blocks_for_char] = {0};

for (int i = 0; i < std::min(static_cast<size_t>(max_utf8_blocks_for_char),
total_bytes - start_byte_for_thread);
for (int i = 0; i < cuda::std::min(static_cast<size_t>(max_utf8_blocks_for_char),
total_bytes - start_byte_for_thread);
++i) {
utf8_blocks[i] = strings[start_byte_for_thread + i];
}
Expand Down

0 comments on commit 18526af

Please sign in to comment.