-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fix cms::cuda::ESProduct for zero devices #29061
Conversation
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-29061/13945
|
A new Pull Request was created by @makortel (Matti Kortelainen) for master. It involves the following packages: HeterogeneousCore/CUDACore @makortel, @cmsbuild, @fwyzard can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
test parameters |
@cmsbuild, please test |
The tests are being triggered in jenkins.
|
@fwyzard Please review. I was trying to run the patatrack pixel tracking on CPU on a machine without GPUs, and it failed because some EventSetup stuff (IIRC it was PixelCPEFast) tried to construct |
+1 |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
Going over at the code it looks good to me. By the way, do we have any other uses of
No, if this enters pre4 I'll pick it up when I update Patatrack to it. |
Yeah, this PR is sort-of an quick&easy(&dirty?) fix to get the default constructor working without devices. The ESProducts in device memory can be done in a better way that does not require device-targeting ESProducts to be constructed for a CPU-only job. So eventually this behavior will go away.
We do not. The
Let's try that then. |
+1 |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @davidlange6, @silviodonato, @fabiocos (and backports should be raised in the release meeting by the corresponding L2) |
+1 About
see #29076 |
PR description:
This PR
numberOfCUDADevices()
function tocms::cuda::numberOfDevices()
to follow the convention established in Tools for CUDA modules #28537 (somehow this function slipped through then)cms::cuda::ESProduct
to be constructed on a machine without GPUsPR validation:
Unit tests run.