-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
return 0 in case of invalid detId, fixes cuda sign conversion warning #45223
Conversation
cms-bot internal usage |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-45223/40591
|
A new Pull Request was created by @smuzaffar for master. It involves the following packages:
@mandrenguyen, @jfernan2, @cmsbuild can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
assign heterogeneous |
hold ah my bad, I did not check the history of the changes. |
Pull request has been put on hold by @smuzaffar |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-bbad42/39886/summary.html Comparison SummarySummary:
|
+1 |
-1 |
Personally I think that disregarding (and disabling) this class of warning is the best course. However, if they are a problem for you, you could change the return value to The important thing is, please, do not change the actual values being used in the code only to make the compiler marginally happier, unless you do so consistently everywhere they are used. |
@mmusich thanks for the heads up. |
I suspect the ECAL code should also be changed to use That is currently not an issue, because we are not running the ECAL PF reconsruction on GPUs, but it could be a good idea to make the same change for consistency - after double checking that it really doesn't break anything. |
closing it in favor of #45238 |
Just like https://github.com/cms-sw/cmssw/blob/master/RecoParticleFlow/PFRecHitProducer/plugins/alpaka/CalorimeterDefinitions.h#L184-L193 , return
0
(instead of-1
) for invalid detId. This should silence the cuda warning [a] which was previously ignore due to bot not using the correct regexp to capture cuda warnings[a] https://cmssdt.cern.ch/SDT/cgi-bin/buildlogs/el8_amd64_gcc12/CMSSW_14_1_X_2024-06-13-2300/RecoParticleFlow/PFRecHitProducer