diff --git a/cpp/src/text/minhash.cu b/cpp/src/text/minhash.cu index f80d24a006d..75b1acd356f 100644 --- a/cpp/src/text/minhash.cu +++ b/cpp/src/text/minhash.cu @@ -47,8 +47,6 @@ #include #include -#include - namespace nvtext { namespace detail { namespace { diff --git a/cpp/src/text/subword/data_normalizer.cu b/cpp/src/text/subword/data_normalizer.cu index a3bed45e4bd..45649e4f8f0 100644 --- a/cpp/src/text/subword/data_normalizer.cu +++ b/cpp/src/text/subword/data_normalizer.cu @@ -26,6 +26,7 @@ #include #include +#include #include #include #include @@ -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(max_utf8_blocks_for_char), - total_bytes - start_byte_for_thread); + for (int i = 0; i < cuda::std::min(static_cast(max_utf8_blocks_for_char), + total_bytes - start_byte_for_thread); ++i) { utf8_blocks[i] = strings[start_byte_for_thread + i]; }