Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #40

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
b3cac39
fix markdown formatting
beckernick Oct 11, 2019
8c7c5ee
revert python version manually
beckernick Oct 11, 2019
3f48a7f
Add nvstrings python build instructions to contributing.md
davidwendt Oct 11, 2019
a04c81f
update changelog
davidwendt Oct 11, 2019
2c3cfd3
changelog
beckernick Oct 11, 2019
612100c
Add rmmInitialize to nvstrings gtests
davidwendt Oct 11, 2019
ce6df31
Merge pull request #30 from rapidsai/branch-0.10
rgsl888prabhu Oct 11, 2019
e819582
code changes to take care of situation with same indices
rgsl888prabhu Oct 11, 2019
55929ad
nvstrings use python weakref for freeing C++ object
davidwendt Oct 11, 2019
1919caf
add rmm as dependency for nvstrings
davidwendt Oct 11, 2019
ebd9120
add weakref pattern to nvcategory
davidwendt Oct 11, 2019
d49bad5
changelog
rgsl888prabhu Oct 11, 2019
131d998
fix rmm meta.yml reference
davidwendt Oct 11, 2019
64588be
Merge pull request #3058 from beckernick/docs/udf-doc-markdown-format…
raydouglass Oct 11, 2019
c00b4e0
Merge branch 'branch-0.10' into fix-nvstrings-tests-for-rmm-change
Oct 11, 2019
4962a0a
Merge branch 'branch-0.10' into 3057_groupby_performance
Oct 11, 2019
38e79fd
Merge pull request #3066 from rapidsai/branch-0.10
GPUtester Oct 11, 2019
4528a78
Inherit from GdfTest in fixtures
shwina Oct 11, 2019
64178b0
remove explicit rmm-init/finalize from conftest.py
davidwendt Oct 12, 2019
29dccb5
Use GTest fixtures and remove 'int main'
Oct 12, 2019
698caba
add rmm.is_initialized check to nvstrings/nvcategory destructors
Oct 14, 2019
2b1dd4a
Merge branch 'branch-0.10' into bug-nvstrings-build-inst
raydouglass Oct 14, 2019
3139caa
Merge pull request #3059 from davidwendt/bug-nvstrings-build-inst
raydouglass Oct 14, 2019
2134804
Merge pull request #3085 from rapidsai/branch-0.10
GPUtester Oct 14, 2019
720becf
Use RMM weakref instead of atexit for proper finalization order
Oct 15, 2019
f42a325
Merge pull request #3061 from davidwendt/fix-nvstrings-tests-for-rmm-…
Oct 15, 2019
8e9a881
Merge branch 'branch-0.10' into 3057_groupby_performance
Oct 15, 2019
033d3cf
Merge pull request #3064 from rgsl888prabhu/3057_groupby_performance
OlivierNV Oct 15, 2019
00a01cb
Merge branch 'branch-0.10' of https://github.com/rapidsai/cudf into b…
shwina Oct 15, 2019
547831c
Update include path
shwina Oct 15, 2019
71e9b04
Update cpp/tests/binaryop/unit/jit-cache-test.hpp
shwina Oct 15, 2019
e3bd801
Merge pull request #3095 from shwina/branch-0.11
Oct 15, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@
- PR #3002 Fix CUDA invalid configuration errors reported after loading an ORC file without data
- PR #3035 Update update-version.sh for new docs locations
- PR #3038 Fix uninitialized stream parameter in device_table deleter
- PR #3064 Fixes groupby performance issue
- PR #3061 Add rmmInitialize to nvstrings gtests
- PR #3058 Fix UDF doc markdown formatting
- PR #3059 Add nvstrings python build instructions to contributing.md


# cuDF 0.9.0 (21 Aug 2019)

Expand Down
12 changes: 6 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ $ ./build.sh libcudf # compile the cuDF libraries and install
$ make test
```

- Build the `nvstrings` python packages, in the `python/nvstrings` folder:
```bash
$ cd $CUDF_HOME/python/nvstrings
$ python setup.py install
```

- Build the `cudf` python package, in the `python/cudf` folder:
```bash
$ cd $CUDF_HOME/python/cudf
Expand All @@ -214,12 +220,6 @@ $ cd $CUDF_HOME
$ ./build.sh dask_cudf
```

- You will also need the following environment variables, including `$CUDA_HOME`.
```bash
NUMBAPRO_NVVM=$CUDA_HOME/nvvm/lib64/libnvvm.so
NUMBAPRO_LIBDEVICE=$CUDA_HOME/nvvm/libdevice
```

- To run Python tests (Optional):
```bash
$ cd $CUDF_HOME/python
Expand Down
2 changes: 2 additions & 0 deletions conda/recipes/nvstrings/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ requirements:
- setuptools
- cmake_setuptools 0.1.3.*
- libnvstrings {{ version }}
- rmm {{ minor_version }}.*
run:
- python
- rmm {{ minor_version }}.*

test:
commands:
Expand Down
26 changes: 11 additions & 15 deletions cpp/custrings/tests/test_array.cu
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@

#include "./utils.h"

struct TestArray : public GdfTest{};

std::vector<const char*> hstrs{ "John Smith", "Joe Blow", "Jane Smith", nullptr, "" };

TEST(TestArray, Sublist)
TEST_F(TestArray, Sublist)
{
NVStrings* strs = NVStrings::create_from_array(hstrs.data(),hstrs.size());

Expand All @@ -21,7 +23,7 @@ TEST(TestArray, Sublist)
NVStrings::destroy(strs);
}

TEST(TestArray, Gather)
TEST_F(TestArray, Gather)
{
NVStrings* strs = NVStrings::create_from_array(hstrs.data(),hstrs.size());

Expand All @@ -38,7 +40,7 @@ TEST(TestArray, Gather)
NVStrings::destroy(strs);
}

TEST(TestArray, GatherBool)
TEST_F(TestArray, GatherBool)
{
NVStrings* strs = NVStrings::create_from_array(hstrs.data(),hstrs.size());

Expand All @@ -57,7 +59,7 @@ TEST(TestArray, GatherBool)
NVStrings::destroy(strs);
}

TEST(TestArray, Scatter)
TEST_F(TestArray, Scatter)
{
NVStrings* strs1 = NVStrings::create_from_array(hstrs.data(),hstrs.size());
const char* h2[] = { "", "Joe Schmoe" };
Expand All @@ -84,7 +86,7 @@ TEST(TestArray, Scatter)
NVStrings::destroy(strs2);
}

TEST(TestArray, RemoveStrings)
TEST_F(TestArray, RemoveStrings)
{
NVStrings* strs = NVStrings::create_from_array(hstrs.data(),hstrs.size());

Expand All @@ -101,7 +103,7 @@ TEST(TestArray, RemoveStrings)
NVStrings::destroy(strs);
}

TEST(TestArray, SortLength)
TEST_F(TestArray, SortLength)
{
NVStrings* strs = NVStrings::create_from_array(hstrs.data(),hstrs.size());

Expand All @@ -113,7 +115,7 @@ TEST(TestArray, SortLength)
NVStrings::destroy(strs);
}

TEST(TestArray, SortName)
TEST_F(TestArray, SortName)
{
NVStrings* strs = NVStrings::create_from_array(hstrs.data(),hstrs.size());

Expand All @@ -125,7 +127,7 @@ TEST(TestArray, SortName)
NVStrings::destroy(strs);
}

TEST(TestArray, OrderLength)
TEST_F(TestArray, OrderLength)
{
NVStrings* strs = NVStrings::create_from_array(hstrs.data(),hstrs.size());

Expand All @@ -139,7 +141,7 @@ TEST(TestArray, OrderLength)
NVStrings::destroy(strs);
}

TEST(TestArray, OrderName)
TEST_F(TestArray, OrderName)
{
NVStrings* strs = NVStrings::create_from_array(hstrs.data(),hstrs.size());

Expand All @@ -152,9 +154,3 @@ TEST(TestArray, OrderName)

NVStrings::destroy(strs);
}

int main( int argc, char** argv )
{
testing::InitGoogleTest(&argc,argv);
return RUN_ALL_TESTS();
}
24 changes: 11 additions & 13 deletions cpp/custrings/tests/test_attrs.cu
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@

#include "nvstrings/NVStrings.h"

#include "./utils.h"

struct TestAttrs : public GdfTest{};

std::vector<const char*> hstrs{
"Héllo", "thesé", nullptr, "ARE THE", "tést strings", "",
"1.75", "-34", "+9.8", "17¼", "x³", "2³", " 12⅝",
"1234567890", "de", "\t\r\n\f "};

TEST(TestAttrs, CharCounts)
TEST_F(TestAttrs, CharCounts)
{
NVStrings* strs = NVStrings::create_from_array(hstrs.data(), hstrs.size());

Expand All @@ -23,7 +27,7 @@ TEST(TestAttrs, CharCounts)
NVStrings::destroy(strs);
}

TEST(TestAttrs, ByteCounts)
TEST_F(TestAttrs, ByteCounts)
{
NVStrings* strs = NVStrings::create_from_array(hstrs.data(), hstrs.size());

Expand All @@ -37,7 +41,7 @@ TEST(TestAttrs, ByteCounts)
NVStrings::destroy(strs);
}

TEST(TestAttrs, IsAlpha)
TEST_F(TestAttrs, IsAlpha)
{
NVStrings* strs = NVStrings::create_from_array(hstrs.data(), hstrs.size());

Expand Down Expand Up @@ -72,7 +76,7 @@ TEST(TestAttrs, IsAlpha)
NVStrings::destroy(strs);
}

TEST(TestAttrs, IsNumeric)
TEST_F(TestAttrs, IsNumeric)
{
NVStrings* strs = NVStrings::create_from_array(hstrs.data(), hstrs.size());

Expand Down Expand Up @@ -107,7 +111,7 @@ TEST(TestAttrs, IsNumeric)
NVStrings::destroy(strs);
}

TEST(TestAttrs, IsSpace)
TEST_F(TestAttrs, IsSpace)
{
NVStrings* strs = NVStrings::create_from_array(hstrs.data(), hstrs.size());

Expand All @@ -134,7 +138,7 @@ TEST(TestAttrs, IsSpace)
NVStrings::destroy(strs);
}

TEST(TestAttrs, IsUpperLower)
TEST_F(TestAttrs, IsUpperLower)
{
NVStrings* strs = NVStrings::create_from_array(hstrs.data(), hstrs.size());

Expand All @@ -160,7 +164,7 @@ TEST(TestAttrs, IsUpperLower)
NVStrings::destroy(strs);
}

TEST(TestAttrs, CodePoints)
TEST_F(TestAttrs, CodePoints)
{
NVStrings* strs = NVStrings::create_from_array(hstrs.data(), 2);
thrust::device_vector<unsigned int> results(10,0);
Expand All @@ -169,9 +173,3 @@ TEST(TestAttrs, CodePoints)
for( int idx = 0; idx < 10; ++idx )
EXPECT_EQ(results[idx],expected[idx]);
}

int main( int argc, char** argv )
{
testing::InitGoogleTest(&argc,argv);
return RUN_ALL_TESTS();
}
18 changes: 7 additions & 11 deletions cpp/custrings/tests/test_case.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@

#include "./utils.h"

struct TestCase : public GdfTest{};

std::vector<const char*> hstrs{ "Examples aBc", "thesé", nullptr, "ARE THE", "tést strings", "" };

TEST(TestCase, ToLower)
TEST_F(TestCase, ToLower)
{
NVStrings* strs = NVStrings::create_from_array(hstrs.data(),hstrs.size());
NVStrings* got = strs->lower();
Expand All @@ -17,7 +19,7 @@ TEST(TestCase, ToLower)
NVStrings::destroy(strs);
}

TEST(TestCase, ToUpper)
TEST_F(TestCase, ToUpper)
{
NVStrings* strs = NVStrings::create_from_array(hstrs.data(),hstrs.size());
NVStrings* got = strs->upper();
Expand All @@ -27,7 +29,7 @@ TEST(TestCase, ToUpper)
NVStrings::destroy(strs);
}

TEST(TestCase, Swapcase)
TEST_F(TestCase, Swapcase)
{
NVStrings* strs = NVStrings::create_from_array(hstrs.data(),hstrs.size());
NVStrings* got = strs->swapcase();
Expand All @@ -37,7 +39,7 @@ TEST(TestCase, Swapcase)
NVStrings::destroy(strs);
}

TEST(TestCase, Capitalize)
TEST_F(TestCase, Capitalize)
{
NVStrings* strs = NVStrings::create_from_array(hstrs.data(),hstrs.size());
NVStrings* got = strs->capitalize();
Expand All @@ -47,7 +49,7 @@ TEST(TestCase, Capitalize)
NVStrings::destroy(strs);
}

TEST(TestCase, Title)
TEST_F(TestCase, Title)
{
NVStrings* strs = NVStrings::create_from_array(hstrs.data(),hstrs.size());
NVStrings* got = strs->title();
Expand All @@ -56,9 +58,3 @@ TEST(TestCase, Title)
NVStrings::destroy(got);
NVStrings::destroy(strs);
}

int main( int argc, char** argv )
{
testing::InitGoogleTest(&argc,argv);
return RUN_ALL_TESTS();
}
14 changes: 5 additions & 9 deletions cpp/custrings/tests/test_combine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@

#include "./utils.h"

struct TestCombine : public GdfTest{};

std::vector<const char*> hstrs1{ "thesé", nullptr, "are", "the",
"tést", "strings", "" };
std::vector<const char*> hstrs2{ "1234", "accénted", "", nullptr,
"5678", "othér", "9" };

TEST(TestCombine, Concatenate)
TEST_F(TestCombine, Concatenate)
{
NVStrings* strs1 = NVStrings::create_from_array(hstrs1.data(),hstrs1.size());
NVStrings* strs2 = NVStrings::create_from_array(hstrs2.data(),hstrs2.size());
Expand Down Expand Up @@ -46,7 +48,7 @@ TEST(TestCombine, Concatenate)
std::vector<const char*> hstrs3{ "abcdéf", "", nullptr, "ghijkl",
"mnop", "éach", "xyz" };

TEST(TestCombine, ConcatenateMultiple)
TEST_F(TestCombine, ConcatenateMultiple)
{
NVStrings* strs1 = NVStrings::create_from_array(hstrs1.data(),hstrs1.size());
NVStrings* strs2 = NVStrings::create_from_array(hstrs2.data(),hstrs2.size());
Expand Down Expand Up @@ -84,7 +86,7 @@ TEST(TestCombine, ConcatenateMultiple)
NVStrings::destroy(strs3);
}

TEST(TestCombine, Join)
TEST_F(TestCombine, Join)
{
NVStrings* strs = NVStrings::create_from_array(hstrs1.data(),hstrs1.size());

Expand All @@ -111,9 +113,3 @@ TEST(TestCombine, Join)

NVStrings::destroy(strs);
}

int main( int argc, char** argv )
{
testing::InitGoogleTest(&argc,argv);
return RUN_ALL_TESTS();
}
Loading