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

Avoid using 'module' identifier - is a keyword in C++20 #45252

Closed
wants to merge 2 commits into from

Conversation

iarspider
Copy link
Contributor

PR description:

Fixes these warnings:

  src/RecoLocalTracker/SiPixelClusterizer/plugins/SiPixelRawToClusterGPUKernel.cu(362): warning #3189-D: "module" is parsed as an identifier rather than a keyword because the tokens that follow it do not match those of a preprocessor directive
           module = (rawId >> pixelgpudetails::moduleStartBit) & pixelgpudetails::moduleMask;
          ^

Remark: The warnings can be suppressed with "-diag-suppress <warning-number>"

  src/RecoLocalTracker/SiPixelClusterizer/plugins/SiPixelRawToClusterGPUKernel.cu(362): warning #3189-D: "module" is parsed as an identifier rather than a keyword because the tokens that follow it do not match those of a preprocessor directive
           module = (rawId >> pixelgpudetails::moduleStartBit) & pixelgpudetails::moduleMask;
          ^

Remark: The warnings can be suppressed with "-diag-suppress <warning-number>"

  src/RecoLocalTracker/SiPixelClusterizer/plugins/SiPixelRawToClusterGPUKernel.cu(362): warning #3189-D: "module" is parsed as an identifier rather than a keyword because the tokens that follow it do not match those of a preprocessor directive
           module = (rawId >> pixelgpudetails::moduleStartBit) & pixelgpudetails::moduleMask;
          ^

Remark: The warnings can be suppressed with "-diag-suppress <warning-number>"

  src/RecoLocalTracker/SiPixelClusterizer/plugins/SiPixelRawToClusterGPUKernel.cu(362): warning #3189-D: "module" is parsed as an identifier rather than a keyword because the tokens that follow it do not match those of a preprocessor directive
           module = (rawId >> pixelgpudetails::moduleStartBit) & pixelgpudetails::moduleMask;
          ^

Remark: The warnings can be suppressed with "-diag-suppress <warning-number>"

  src/RecoLocalTracker/SiPixelClusterizer/plugins/SiPixelRawToClusterGPUKernel.cu(362): warning #3189-D: "module" is parsed as an identifier rather than a keyword because the tokens that follow it do not match those of a preprocessor directive
           module = (rawId >> pixelgpudetails::moduleStartBit) & pixelgpudetails::moduleMask;
          ^

Remark: The warnings can be suppressed with "-diag-suppress <warning-number>"

  src/RecoLocalTracker/SiPixelClusterizer/plugins/SiPixelRawToClusterGPUKernel.cu(362): warning #3189-D: "module" is parsed as an identifier rather than a keyword because the tokens that follow it do not match those of a preprocessor directive
           module = (rawId >> pixelgpudetails::moduleStartBit) & pixelgpudetails::moduleMask;
          ^

Remark: The warnings can be suppressed with "-diag-suppress <warning-number>"

PR validation:

Bot tests

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 18, 2024

cms-bot internal usage

@iarspider
Copy link
Contributor Author

please test for CMSSW_14_1_CPP20_X

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-45252/40634

  • This PR adds an extra 20KB to repository

  • There are other open Pull requests which might conflict with changes you have proposed:

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @iarspider for master.

It involves the following packages:

  • RecoLocalTracker/SiPixelClusterizer (reconstruction)

@mandrenguyen, @jfernan2 can you please review it and eventually sign? Thanks.
@missirol, @mroguljic, @VourMa, @VinInn, @rovere, @dkotlins, @gpetruc, @GiacomoSguazzoni, @tsusa, @ferencek, @tvami, @threus, @mtosi, @mmusich, @JanFSchulte, @felicepantaleo this is something you requested to watch as well.
@sextonkennedy, @antoniovilela, @rappoccio you are the release manager for this.

cms-bot commands are listed here

@iarspider
Copy link
Contributor Author

please test for CMSSW_14_1_CPP20_X

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-45252/40638

  • This PR adds an extra 20KB to repository

  • There are other open Pull requests which might conflict with changes you have proposed:

@cmsbuild
Copy link
Contributor

Pull request #45252 was updated. @jfernan2, @mandrenguyen can you please check and sign again.

@fwyzard
Copy link
Contributor

fwyzard commented Jun 18, 2024

assign heterogeneous

@cmsbuild
Copy link
Contributor

New categories assigned: heterogeneous

@fwyzard,@makortel you have been requested to review this Pull request/Issue and eventually sign? Thanks

@fwyzard
Copy link
Contributor

fwyzard commented Jun 18, 2024

I don't see GCC and clang complain about this ?

https://godbolt.org/z/h3cxxavn9

@iarspider
Copy link
Contributor Author

@fwyzard this warning is from nvcc, not gcc/clang.

@fwyzard
Copy link
Contributor

fwyzard commented Jun 18, 2024

I see.

Since gcc and clang do not warn about it, I would prefer to simply silence the warning in nvcc.

@cmsbuild
Copy link
Contributor

-1

Failed Tests: UnitTests
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-eba795/39951/summary.html
COMMIT: 643baa7
CMSSW: CMSSW_14_1_CPP20_X_2024-06-17-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/45252/39951/install.sh to create a dev area with all the needed externals and cmssw changes.

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:

You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-eba795/39951/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-eba795/39951/git-merge-result

Unit Tests

I found 5 errors in the following unit tests:

---> test GeometryMTDGeometryBuilderTestDriver had ERRORS
---> test GeometryMTDNumberingBuilderTestDriver had ERRORS
---> test GeometryMTDCommonDataTestDriver had ERRORS
and more ...

Comparison Summary

Summary:

@fwyzard
Copy link
Contributor

fwyzard commented Jun 19, 2024

-heterogeneous

I'd rather silence the warning in nvcc.

@iarspider
Copy link
Contributor Author

@cmsbuild please close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants