Skip to content

Commit

Permalink
Merge pull request #3052 from jwyles/issue2944-2
Browse files Browse the repository at this point in the history
Move replace.hpp files to legacy
  • Loading branch information
jrhemstad authored Oct 22, 2019
2 parents 90062b9 + 88e191b commit 1d7e44a
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 17 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
- PR #3014 Snappy decompression optimizations
- PR #3032 Use `asarray` to coerce indices to a NumPy array
- PR #2996 IO Readers: Replace `cuio::device_buffer` with `rmm::device_buffer`
- PR #3052 Moved replace.hpp functionality to legacy
- PR #3091 Move join files to legacy
- PR #3092 Implicitly init RMM if Java allocates before init
- PR #3029 Update gdf_ numeric types with stdint and move to cudf namespace
Expand All @@ -43,6 +44,7 @@
- PR #3021 Java host side concat of serialized buffers
- PR #3138 Movey unary files to legacy


## Bug Fixes

- PR #3048 Support for zero columned tables
Expand Down
2 changes: 1 addition & 1 deletion conda/recipes/libcudf/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ test:
- test -f $PREFIX/include/cudf/merge.hpp
- test -f $PREFIX/include/cudf/predicates.hpp
- test -f $PREFIX/include/cudf/reduction.hpp
- test -f $PREFIX/include/cudf/replace.hpp
- test -f $PREFIX/include/cudf/legacy/replace.hpp
- test -f $PREFIX/include/cudf/rolling.hpp
- test -f $PREFIX/include/cudf/legacy/search.hpp
- test -f $PREFIX/include/cudf/stream_compaction.hpp
Expand Down
2 changes: 1 addition & 1 deletion cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ add_library(cudf
src/reductions/mean.cu
src/reductions/var.cu
src/reductions/std.cu
src/replace/replace.cu
src/replace/legacy/replace.cu
src/reductions/scan.cu
src/transpose/legacy/transpose.cu
src/merge/merge.cu
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
#ifndef REPLACE_HPP
#define REPLACE_HPP

#include "cudf.h"
#include "types.hpp"
#include "cudf/cudf.h"
#include "cudf/types.hpp"

// Forward declaration
typedef struct CUstream_st* cudaStream_t;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <cub/cub.cuh>

#include <cudf/legacy/copying.hpp>
#include <cudf/replace.hpp>
#include <cudf/legacy/replace.hpp>
#include <cudf/cudf.h>
#include <rmm/rmm.h>
#include <cudf/types.hpp>
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/strings/nvcategory_util.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <utility>
#include <utilities/column_utils.hpp>
#include <cudf/utilities/legacy/nvcategory_util.hpp>
#include <cudf/replace.hpp>
#include <cudf/legacy/replace.hpp>
#include <cudf/types.hpp>
#include <cudf/legacy/table.hpp>
#include <nvstrings/NVCategory.h>
Expand Down
14 changes: 7 additions & 7 deletions cpp/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -250,17 +250,17 @@ set(REDUCTION_TEST_SRC
ConfigureTest(REDUCTION_TEST "${REDUCTION_TEST_SRC}")

###################################################################################################
# - replace tests ---------------------------------------------------------------------------------
# - legacy replace tests ---------------------------------------------------------------------------------

set(REPLACE_TEST_SRC
"${CMAKE_CURRENT_SOURCE_DIR}/replace/replace_tests.cu")
set(LEGACY_REPLACE_TEST_SRC
"${CMAKE_CURRENT_SOURCE_DIR}/replace/legacy/replace_tests.cu")

ConfigureTest(REPLACE_TEST "${REPLACE_TEST_SRC}")
ConfigureTest(LEGACY_REPLACE_TEST "${LEGACY_REPLACE_TEST_SRC}")

set(REPLACE_NULLS_TEST_SRC
"${CMAKE_CURRENT_SOURCE_DIR}/replace/replace-nulls_tests.cu")
set(LEGACY_REPLACE_NULLS_TEST_SRC
"${CMAKE_CURRENT_SOURCE_DIR}/replace/legacy/replace-nulls_tests.cu")

ConfigureTest(REPLACE_NULLS_TEST "${REPLACE_NULLS_TEST_SRC}")
ConfigureTest(LEGACY_REPLACE_NULLS_TEST "${LEGACY_REPLACE_NULLS_TEST_SRC}")

###################################################################################################
# - unary tests -----------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

#include <cudf/replace.hpp>
#include <cudf/legacy/replace.hpp>

#include <utilities/error_utils.hpp>

Expand Down Expand Up @@ -83,4 +83,4 @@ TYPED_TEST(ReplaceNullsTest, ReplaceScalar)
cudf::test::column_wrapper<TypeParam> {column_size,
[](cudf::size_type row) { return (row < column_size/2) ? 1 : row; },
false});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cudf/replace.hpp>
#include <cudf/legacy/replace.hpp>

#include <tests/utilities/legacy/cudf_test_fixtures.h>
#include <tests/utilities/legacy/cudf_test_utils.cuh>
Expand Down
2 changes: 1 addition & 1 deletion python/cudf/cudf/_lib/includes/replace.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from cudf._lib.cudf cimport *

cdef extern from "cudf/replace.hpp" namespace "cudf" nogil:
cdef extern from "cudf/legacy/replace.hpp" namespace "cudf" nogil:

cdef gdf_column replace_nulls(
const gdf_column& inp,
Expand Down

0 comments on commit 1d7e44a

Please sign in to comment.