-
Notifications
You must be signed in to change notification settings - Fork 916
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/branch-22.04' into 10049
- Loading branch information
Showing
15 changed files
with
906 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/* | ||
* Copyright (c) 2022, NVIDIA CORPORATION. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
#pragma once | ||
|
||
#include <cudf/lists/contains.hpp> | ||
#include <cudf/lists/lists_column_view.hpp> | ||
|
||
namespace cudf { | ||
namespace lists { | ||
namespace detail { | ||
|
||
/** | ||
* @copydoc cudf::lists::index_of(cudf::lists_column_view const&, | ||
* cudf::scalar const&, | ||
* duplicate_find_option, | ||
* rmm::mr::device_memory_resource*) | ||
* @param stream CUDA stream used for device memory operations and kernel launches. | ||
*/ | ||
std::unique_ptr<column> index_of( | ||
cudf::lists_column_view const& lists, | ||
cudf::scalar const& search_key, | ||
cudf::lists::duplicate_find_option find_option, | ||
rmm::cuda_stream_view stream, | ||
rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource()); | ||
|
||
/** | ||
* @copydoc cudf::lists::index_of(cudf::lists_column_view const&, | ||
* cudf::column_view const&, | ||
* duplicate_find_option, | ||
* rmm::mr::device_memory_resource*) | ||
* @param stream CUDA stream used for device memory operations and kernel launches. | ||
*/ | ||
std::unique_ptr<column> index_of( | ||
cudf::lists_column_view const& lists, | ||
cudf::column_view const& search_keys, | ||
cudf::lists::duplicate_find_option find_option, | ||
rmm::cuda_stream_view stream, | ||
rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource()); | ||
|
||
/** | ||
* @copydoc cudf::lists::contains(cudf::lists_column_view const&, | ||
* cudf::scalar const&, | ||
* rmm::mr::device_memory_resource*) | ||
* @param stream CUDA stream used for device memory operations and kernel launches. | ||
*/ | ||
std::unique_ptr<column> contains( | ||
cudf::lists_column_view const& lists, | ||
cudf::scalar const& search_key, | ||
rmm::cuda_stream_view stream, | ||
rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource()); | ||
|
||
/** | ||
* @copydoc cudf::lists::contains(cudf::lists_column_view const&, | ||
* cudf::column_view const&, | ||
* rmm::mr::device_memory_resource*) | ||
* @param stream CUDA stream used for device memory operations and kernel launches. | ||
*/ | ||
std::unique_ptr<column> contains( | ||
cudf::lists_column_view const& lists, | ||
cudf::column_view const& search_keys, | ||
rmm::cuda_stream_view stream, | ||
rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource()); | ||
} // namespace detail | ||
} // namespace lists | ||
} // namespace cudf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* Copyright (c) 2022, NVIDIA CORPORATION. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
#pragma once | ||
|
||
#include <cudf/lists/extract.hpp> | ||
#include <cudf/lists/lists_column_view.hpp> | ||
|
||
namespace cudf { | ||
namespace lists { | ||
namespace detail { | ||
|
||
/** | ||
* @copydoc cudf::lists::extract_list_element(lists_column_view, size_type, | ||
* rmm::mr::device_memory_resource*) | ||
* @param stream CUDA stream used for device memory operations and kernel launches. | ||
*/ | ||
std::unique_ptr<column> extract_list_element( | ||
lists_column_view lists_column, | ||
size_type const index, | ||
rmm::cuda_stream_view stream, | ||
rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource()); | ||
|
||
/** | ||
* @copydoc cudf::lists::extract_list_element(lists_column_view, column_view const&, | ||
* rmm::mr::device_memory_resource*) | ||
* @param stream CUDA stream used for device memory operations and kernel launches. | ||
*/ | ||
std::unique_ptr<column> extract_list_element( | ||
lists_column_view lists_column, | ||
column_view const& indices, | ||
rmm::cuda_stream_view stream, | ||
rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource()); | ||
|
||
} // namespace detail | ||
} // namespace lists | ||
} // namespace cudf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.