forked from rapidsai/cudf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'branch-0.6' into bld-update-version
- Loading branch information
Showing
123 changed files
with
6,568 additions
and
1,832 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
export BUILD_ABI=1 | ||
export BUILD_CUDF=1 | ||
export BUILD_CFFI=1 | ||
|
||
if [[ "$PYTHON" == "3.6" ]]; then | ||
export BUILD_LIBCUDF=1 | ||
else | ||
export BUILD_LIBCUDF=0 | ||
fi |
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,93 @@ | ||
/* | ||
* Copyright (c) 2018-2019, 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. | ||
*/ | ||
|
||
#ifndef COPYING_HPP | ||
#define COPYING_HPP | ||
|
||
#include "cudf.h" | ||
#include "types.hpp" | ||
|
||
namespace cudf { | ||
/** | ||
* @brief Scatters the rows (including null values) of a set of source columns | ||
* into a set of destination columns. | ||
* | ||
* The two sets of columns must have equal numbers of columns. | ||
* | ||
* Scatters the rows of the source columns into the destination columns | ||
* according to a scatter map such that row "i" from the source columns will be | ||
* scattered to row "scatter_map[i]" in the destination columns. | ||
* | ||
* The datatypes between coresponding columns in the source and destination | ||
* columns must be the same. | ||
* | ||
* The number of elements in the scatter_map must equal the number of rows in | ||
* the source columns. | ||
* | ||
* If any index in scatter_map is outside the range of [0, num rows in | ||
* destination_columns), the result is undefined. | ||
* | ||
* If the same index appears more than once in scatter_map, the result is | ||
* undefined. | ||
* | ||
* @Param[in] source_table The columns whose rows will be scattered | ||
* @Param[in] scatter_map An array that maps rows in the input columns | ||
* to rows in the output columns. | ||
* @Param[out] destination_table A preallocated set of columns with a number | ||
* of rows equal in size to the maximum index contained in scatter_map | ||
* | ||
* @Returns GDF_SUCCESS upon successful completion | ||
*/ | ||
void scatter(table const* source_table, gdf_index_type const scatter_map[], | ||
table* destination_table); | ||
|
||
/** | ||
* @brief Gathers the rows (including null values) of a set of source columns | ||
* into a set of destination columns. | ||
* | ||
* The two sets of columns must have equal numbers of columns. | ||
* | ||
* Gathers the rows of the source columns into the destination columns according | ||
* to a gather map such that row "i" in the destination columns will contain | ||
* row "gather_map[i]" from the source columns. | ||
* | ||
* The datatypes between coresponding columns in the source and destination | ||
* columns must be the same. | ||
* | ||
* The number of elements in the gather_map must equal the number of rows in the | ||
* destination columns. | ||
* | ||
* If any index in the gather_map is outside the range [0, num rows in | ||
* source_columns), the result is undefined. | ||
* | ||
* If the same index appears more than once in gather_map, the result is | ||
* undefined. | ||
* | ||
* @param[in] source_table The input columns whose rows will be gathered | ||
* @param[in] gather_map An array of indices that maps the rows in the source | ||
* columns to rows in the destination columns. | ||
* @param[out] destination_table A preallocated set of columns with a number | ||
* of rows equal in size to the number of elements in the gather_map that will | ||
* contain the rearrangement of the source columns based on the mapping. Can be | ||
* the same as `source_table` (in-place gather). | ||
* | ||
* @Returns GDF_SUCCESS upon successful completion | ||
*/ | ||
void gather(table const* source_table, gdf_index_type const gather_map[], | ||
table* destination_table); | ||
} // namespace cudf | ||
|
||
#endif // COPYING_H |
Oops, something went wrong.