Skip to content

Updating Clang Version to 11.0.0 - #6695

Merged
rapids-bot[bot] merged 38 commits into
NVIDIA:branch-21.08from
codereport:clang-11
Jul 7, 2021
Merged

Updating Clang Version to 11.0.0#6695
rapids-bot[bot] merged 38 commits into
NVIDIA:branch-21.08from
codereport:clang-11

Conversation

@codereport

@codereport codereport commented Nov 6, 2020

Copy link
Copy Markdown
Contributor

This resolves: #5187

PR description copied from: NVIDIA/cuml#3121

Depends on: rapidsai/integration#304

This PR will upgrade the clang version required to 11.0.0 in order to enable us with running clang-tidy on .cu files, while running on cuda v11. See NVIDIA/raft#88 for more details.

CI will not pass as the underlying conda-env still uses 8.0.1. Once we have the rapids-build-env meta package updated, this should pass.


Fixes from Clang 8.0.1 to Clang 11.0.0 (that are observed in delta)

  • Missing spaces
  • Incorrect alignment when ternary expression splits across multiple lines
  • Comment alignment on macros
  • Fixed where function signatures have line breaks
  • Aligning macros
  • Always left align pointer/reference
  • Don't allow single line for loops

To do list:

@codereport codereport added 2 - In Progress Currently a work in progress libcudf Affects libcudf (C++/CUDA) code. labels Nov 6, 2020
@codereport
codereport requested review from a team as code owners November 6, 2020 15:40
@codereport codereport self-assigned this Nov 6, 2020
@GPUtester

Copy link
Copy Markdown
Collaborator

Please update the changelog in order to start CI tests.

View the gpuCI docs here.

@codecov

codecov Bot commented Nov 6, 2020

Copy link
Copy Markdown

Codecov Report

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

❗ Current head ef10e1e differs from pull request most recent head 6632d7f. Consider uploading reports for the commit 6632d7f to get more accurate results
Impacted file tree graph

@@               Coverage Diff               @@
##             branch-21.08    #6695   +/-   ##
===============================================
  Coverage                ?   10.64%           
===============================================
  Files                   ?      109           
  Lines                   ?    18654           
  Branches                ?        0           
===============================================
  Hits                    ?     1985           
  Misses                  ?    16669           
  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 d77ba82...6632d7f. Read the comment docs.

Comment thread cpp/include/cudf/detail/utilities/device_atomics.cuh Outdated
@harrism

harrism commented Nov 23, 2020

Copy link
Copy Markdown
Contributor

@codereport should we push this to 0.18?

@codereport

Copy link
Copy Markdown
Contributor Author

@codereport should we push this to 0.18?

Yep, let's do that.

@codereport codereport changed the title [WIP] Updating Clang Version to 11.0.0 Updating Clang Version to 11.0.0 Dec 11, 2020
@codereport
codereport marked this pull request as draft December 11, 2020 00:24
@harrism

harrism commented Feb 3, 2021

Copy link
Copy Markdown
Contributor

@codereport maybe we can get to this in 0.19.

@harrism
harrism changed the base branch from branch-0.17 to branch-0.19 February 3, 2021 04:20
@codereport

Copy link
Copy Markdown
Contributor Author

@codereport maybe we can get to this in 0.19.

Yea sorry, this has been on the back burner. Will be one of my focuses in .19

@ttnghia

ttnghia commented May 21, 2021

Copy link
Copy Markdown
Contributor

Hi there. I'm curious about the state of this PR. How about it now?

@harrism

harrism commented May 24, 2021

Copy link
Copy Markdown
Contributor

Moving to 21.08

@codereport

Copy link
Copy Markdown
Contributor Author

Hi there. I'm curious about the state of this PR. How about it now?

Hey @ttnghia, this has been on the back burner for a while. Once I finish with the AST PR Vyas and I are working on, this will be next on my list of things to do.

@github-actions github-actions Bot added the conda label May 27, 2021
@codereport codereport added the improvement Improvement / enhancement to an existing function label May 27, 2021

@dillon-cullinan dillon-cullinan 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.

These lines should be removed. Update the clang version in the integration repo.

Comment thread ci/checks/style.sh Outdated
@codereport codereport added 5 - Ready to Merge Testing and reviews complete, ready to merge and removed 3 - Ready for Review Ready for review by team labels Jun 28, 2021
@cwharris

cwharris commented Jul 4, 2021

Copy link
Copy Markdown
Contributor

@codereport we're missing a really great opportunity to title this PR

“Turn Clang up to 11”

@codereport

Copy link
Copy Markdown
Contributor Author

rerun tests

1 similar comment
@codereport

Copy link
Copy Markdown
Contributor Author

rerun tests

rapids-bot Bot pushed a commit to rapidsai/rmm that referenced this pull request Jul 6, 2021
rapids-bot Bot pushed a commit to rapidsai/cuspatial that referenced this pull request Jul 6, 2021
Follow up PR to: NVIDIA/cudf#6695. Performing the same changes but for `rapidsai/cuspatial`

Depends on: rapidsai/integration#304

Authors:
  - Conor Hoekstra (https://github.com/codereport)

Approvers:
  - Dillon Cullinan (https://github.com/dillon-cullinan)
  - H. Thomson Comer (https://github.com/thomcom)

URL: #426
@codereport

Copy link
Copy Markdown
Contributor Author

@gpucibot merge

@rapids-bot
rapids-bot Bot merged commit 7721819 into NVIDIA:branch-21.08 Jul 7, 2021
rapids-bot Bot pushed a commit to rapidsai/cugraph that referenced this pull request Jul 7, 2021
Follow up PR to: NVIDIA/cudf#6695. Performing the same changes but for `rapidsai/cugraph`

Depends on: rapidsai/integration#304

Authors:
  - Conor Hoekstra (https://github.com/codereport)

Approvers:
  - Dillon Cullinan (https://github.com/dillon-cullinan)
  - Chuck Hastings (https://github.com/ChuckHastings)

URL: #1688
rapids-bot Bot pushed a commit to NVIDIA/cuml that referenced this pull request Jul 9, 2021
vimarsh6739 pushed a commit to vimarsh6739/cuml that referenced this pull request Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5 - Ready to Merge Testing and reviews complete, ready to merge 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.

[FEA] Upgrade clang-format to Clang 11 and other adjustments

8 participants