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

Rename some copying_test source files .cu to .cpp #8527

Merged
merged 5 commits into from
Jun 18, 2021

Conversation

davidwendt
Copy link
Contributor

Found these files could be changed from .cu to .cpp while working on a different PR.

  • cpp/tests/copying/gather_struct_tests.cu
  • cpp/tests/copying/gather_str_tests.cu
  • cpp/tests/copying/gather_tests.cu
  • cpp/tests/copying/gather_list_tests.cu
  • cpp/tests/copying/pack_tets.cu

This PR renames these files and makes minimal updates (e.g removes unneeded includes of .cuh files) to make these compile and run as .cpp source files.

@davidwendt davidwendt added 2 - In Progress Currently a work in progress libcudf Affects libcudf (C++/CUDA) code. improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Jun 15, 2021
@davidwendt davidwendt self-assigned this Jun 15, 2021
@github-actions github-actions bot added the CMake CMake build issue label Jun 15, 2021
@codecov
Copy link

codecov bot commented Jun 16, 2021

Codecov Report

❗ No coverage uploaded for pull request base (branch-21.08@7c8d847). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head 20ede37 differs from pull request most recent head 76f6fdb. Consider uploading reports for the commit 76f6fdb to get more accurate results
Impacted file tree graph

@@               Coverage Diff               @@
##             branch-21.08    #8527   +/-   ##
===============================================
  Coverage                ?   82.95%           
===============================================
  Files                   ?      109           
  Lines                   ?    18226           
  Branches                ?        0           
===============================================
  Hits                    ?    15120           
  Misses                  ?     3106           
  Partials                ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7c8d847...76f6fdb. Read the comment docs.

@davidwendt davidwendt added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Jun 16, 2021
@davidwendt davidwendt marked this pull request as ready for review June 16, 2021 15:42
@davidwendt davidwendt requested a review from a team as a code owner June 16, 2021 15:42
Copy link
Contributor

@vuule vuule left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@vuule
Copy link
Contributor

vuule commented Jun 18, 2021

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 7850b5e into rapidsai:branch-21.08 Jun 18, 2021
@davidwendt davidwendt deleted the copying-tests-cu-to-cpp branch June 18, 2021 12:24
@davidwendt davidwendt restored the copying-tests-cu-to-cpp branch June 18, 2021 16:43
@davidwendt davidwendt deleted the copying-tests-cu-to-cpp branch June 18, 2021 16:43
rapids-bot bot pushed a commit that referenced this pull request Jun 21, 2021
Building libcudf in debug resulted in a compile error introduced by #8527 

```
../tests/copying/gather_struct_tests.cpp:87:32: error: suggest parentheses around ‘&&’ within ‘||’ [-Werror=parentheses]
   87 |       assert(gather_index >= 0 && gather_index < gather_map.size() ||
      |              ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

This error only shows in a debug build. This PR fixes the this code by applying the parentheses as the error suggests.

Authors:
  - David Wendt (https://github.com/davidwendt)

Approvers:
  - Gera Shegalov (https://github.com/gerashegalov)
  - Nghia Truong (https://github.com/ttnghia)
  - MithunR (https://github.com/mythrocks)

URL: #8554
rapids-bot bot pushed a commit that referenced this pull request Jun 23, 2021
Found this file can be changed to .cpp by modifying the `TypedColumnTest` to build its test data in the CPU and then cudaMemcpy it to the GPU. The remain ~1000 lines did not require any updates. Only a few `lists_column_wrapper` ctors needed to be corrected as similar to PR #8527.

Authors:
  - David Wendt (https://github.com/davidwendt)

Approvers:
  - Nghia Truong (https://github.com/ttnghia)
  - https://github.com/nvdbaranec
  - Mark Harris (https://github.com/harrism)

URL: #8555
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team CMake CMake build issue improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants