Skip to content

Enable CEC for strings_udf - #11884

Merged
rapids-bot[bot] merged 19 commits into
NVIDIA:branch-22.12from
brandon-b-miller:fea-strings-udf-cec
Nov 2, 2022
Merged

Enable CEC for strings_udf#11884
rapids-bot[bot] merged 19 commits into
NVIDIA:branch-22.12from
brandon-b-miller:fea-strings-udf-cec

Conversation

@brandon-b-miller

Copy link
Copy Markdown
Contributor

This PR removes the runtime checks for CEC in strings_udf.

@github-actions github-actions Bot added the Python Affects Python cuDF API. label Oct 10, 2022
@brandon-b-miller brandon-b-miller added feature request New feature or request non-breaking Non-breaking change labels Oct 10, 2022
@github-actions github-actions Bot added the gpuCI label Oct 10, 2022
@codecov

codecov Bot commented Oct 10, 2022

Copy link
Copy Markdown

Codecov Report

Base: 87.47% // Head: 88.09% // Increases project coverage by +0.61% 🎉

Coverage data is based on head (41e19e4) compared to base (f817d96).
Patch has no changes to coverable lines.

❗ Current head 41e19e4 differs from pull request most recent head 610e85a. Consider uploading reports for the commit 610e85a to get more accurate results

Additional details and impacted files
@@               Coverage Diff                @@
##           branch-22.12   #11884      +/-   ##
================================================
+ Coverage         87.47%   88.09%   +0.61%     
================================================
  Files               133      135       +2     
  Lines             21826    21984     +158     
================================================
+ Hits              19093    19367     +274     
+ Misses             2733     2617     -116     
Impacted Files Coverage Δ
python/cudf/cudf/io/text.py 91.66% <0.00%> (-8.34%) ⬇️
python/strings_udf/strings_udf/__init__.py 76.47% <0.00%> (-7.85%) ⬇️
python/cudf/cudf/core/_base_index.py 81.28% <0.00%> (-4.27%) ⬇️
python/cudf/cudf/io/json.py 92.06% <0.00%> (-2.68%) ⬇️
python/cudf/cudf/utils/utils.py 89.91% <0.00%> (-0.69%) ⬇️
python/dask_cudf/dask_cudf/core.py 73.72% <0.00%> (-0.41%) ⬇️
python/cudf/cudf/io/parquet.py 90.45% <0.00%> (-0.39%) ⬇️
python/dask_cudf/dask_cudf/backends.py 84.90% <0.00%> (-0.37%) ⬇️
python/cudf/cudf/core/column/datetime.py 89.62% <0.00%> (-0.09%) ⬇️
python/cudf/cudf/io/orc.py 92.94% <0.00%> (-0.09%) ⬇️
... and 34 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@brandon-b-miller
brandon-b-miller marked this pull request as ready for review October 13, 2022 12:57
@brandon-b-miller
brandon-b-miller requested review from a team as code owners October 13, 2022 12:57
@brandon-b-miller brandon-b-miller added the 3 - Ready for Review Ready for review by team label Oct 13, 2022
Comment thread python/strings_udf/strings_udf/__init__.py Outdated
Comment thread ci/gpu/build.sh Outdated
Comment thread ci/gpu/build.sh Outdated
Co-authored-by: Vyas Ramasubramani <vyas.ramasubramani@gmail.com>
Comment thread python/strings_udf/strings_udf/__init__.py Outdated
Comment thread python/strings_udf/strings_udf/__init__.py Outdated
Comment thread python/strings_udf/strings_udf/__init__.py Outdated

@gmarkall gmarkall left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks good - just a couple of minor points on the diff.

@gmarkall gmarkall left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks good - many thanks for the updates.

Comment thread python/cudf/cudf/core/udf/__init__.py
Comment thread python/strings_udf/strings_udf/__init__.py Outdated
Comment thread python/strings_udf/strings_udf/__init__.py Outdated
Comment thread python/strings_udf/strings_udf/__init__.py Outdated

@wence- wence- left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry, I should have been clearer first time round.

Comment thread python/strings_udf/strings_udf/__init__.py
Comment thread python/strings_udf/strings_udf/__init__.py Outdated
Comment thread python/strings_udf/strings_udf/__init__.py Outdated
Comment thread python/strings_udf/strings_udf/__init__.py Outdated
@github-actions github-actions Bot added the conda label Oct 26, 2022
@brandon-b-miller

Copy link
Copy Markdown
Contributor Author

rerun tests

@brandon-b-miller

brandon-b-miller commented Oct 27, 2022

Copy link
Copy Markdown
Contributor Author

@gmarkall @wence- now that the relevant ptxcompiler changes have been released I think this is ready for another look. I have added ptxcompiler >=0.7.0 in the run dependency specification for this package, meaning the installation of strings_udf should trigger an upgrade to the relevant version of ptxcompiler upon installation.

let me know if you have any further thoughts :)

@brandon-b-miller

Copy link
Copy Markdown
Contributor Author

rerun tests

Comment thread python/strings_udf/strings_udf/__init__.py Outdated
@wence-

wence- commented Oct 31, 2022

Copy link
Copy Markdown
Contributor

@gmarkall @wence- now that the relevant ptxcompiler changes have been released I think this is ready for another look. I have added ptxcompiler >=0.7.0 in the run dependency specification for this package, meaning the installation of strings_udf should trigger an upgrade to the relevant version of ptxcompiler upon installation.

let me know if you have any further thoughts :)

I think some of the comments from my previous review (around unconditional initialisation of cuda contexts on import, and undefined ptxpath variable) still apply.

@brandon-b-miller

Copy link
Copy Markdown
Contributor Author

I think some of the comments from my previous review (around unconditional initialisation of cuda contexts on import, and undefined ptxpath variable) still apply.

made a few updates to this in 777e257

Comment thread python/cudf/cudf/core/udf/__init__.py

def _get_ptx_file():
if "RAPIDS_NO_INITIALIZE" in os.environ:
cc = int(os.environ.get("STRINGS_UDF_CC", "52"))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The idea here is that downstream consumers (like dask-cuda) that set RAPIDS_NO_INITIALIZE have a way to advertise the compute capability of the device they are running on (without creating a context). Do we care about bikeshedding this name?

@brandon-b-miller

brandon-b-miller commented Nov 2, 2022

Copy link
Copy Markdown
Contributor Author

@gpucibot merge needs an ops review still

@brandon-b-miller

Copy link
Copy Markdown
Contributor Author

@gpucibot merge

@rapids-bot
rapids-bot Bot merged commit 49fc3c7 into NVIDIA:branch-22.12 Nov 2, 2022
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 feature request New feature or request non-breaking Non-breaking change Python Affects Python cuDF API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants