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

Improve support for HIP/ROCm and Alpaka #40678

Merged
merged 3 commits into from
Feb 5, 2023

Conversation

fwyzard
Copy link
Contributor

@fwyzard fwyzard commented Feb 2, 2023

PR description:

Update CMS code for Alpaka devel as of 2023.02.01, that includes some functions and traits previously defined in CMSSW.

Add or improve support for HIP/ROCm in HeterogeneousCore tools and SoA DataFormats, including a dedicated unit test.

This PR requires

PR validation:

Old and new unit tests pass.

@fwyzard
Copy link
Contributor Author

fwyzard commented Feb 2, 2023

please test with cms-sw/cmssw-config#91, cms-sw/cmssw-config#91

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 2, 2023

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40678/34028

ERROR: Build errors found during clang-tidy run.

                                                                           ^~~~~~~
                                                                           Queue
--
HeterogeneousCore/AlpakaInterface/interface/CachingAllocator.h:87:92: error: expected unqualified-id [clang-diagnostic-error]
            typename = std::enable_if_t<alpaka::isDevice<TDev> and alpaka::isQueue<TQueue>>>
                                                                                           ^
HeterogeneousCore/AlpakaInterface/interface/devices.h:15:71: error: no member named 'isPlatform' in namespace 'alpaka' [clang-diagnostic-error]
    template <typename TPlatform, typename = std::enable_if_t<alpaka::isPlatform<TPlatform>>>
                                                                      ^
HeterogeneousCore/AlpakaInterface/interface/devices.h:15:82: error: 'TPlatform' does not refer to a value [clang-diagnostic-error]
    template <typename TPlatform, typename = std::enable_if_t<alpaka::isPlatform<TPlatform>>>
                                                                                 ^
HeterogeneousCore/AlpakaInterface/interface/devices.h:15:24: note: declared here
--
HeterogeneousCore/AlpakaInterface/interface/devices.h:15:93: error: expected unqualified-id [clang-diagnostic-error]
    template <typename TPlatform, typename = std::enable_if_t<alpaka::isPlatform<TPlatform>>>
                                                                                            ^
HeterogeneousCore/AlpakaInterface/interface/devices.h:34:69: error: no member named 'isPlatform' in namespace 'alpaka' [clang-diagnostic-error]
  template <typename TPlatform, typename = std::enable_if_t<alpaka::isPlatform<TPlatform>>>
                                                                    ^
Suppressed 588 warnings (587 in non-user code, 1 with check filters).
--
gmake: *** [config/SCRAM/GMake/Makefile.coderules:129: code-checks] Error 2
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2

@fwyzard
Copy link
Contributor Author

fwyzard commented Feb 3, 2023

code-checks with cms.week0.PR_ac9e8379/53.0-004e1992113b32c3ea5cd84a3366d985

@fwyzard
Copy link
Contributor Author

fwyzard commented Feb 3, 2023

please test with cms-sw/cmsdist#8284,cms-sw/cmsdist#8285

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 3, 2023

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40678/34030

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@fwyzard
Copy link
Contributor Author

fwyzard commented Feb 3, 2023

please test with cms-sw/cmsdist#8284,cms-sw/cmsdist#8285

@fwyzard
Copy link
Contributor Author

fwyzard commented Feb 3, 2023

code-checks with cms.week0.PR_ac9e8379/53.0-004e1992113b32c3ea5cd84a3366d985

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 3, 2023

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40678/34037

@fwyzard
Copy link
Contributor Author

fwyzard commented Feb 3, 2023

code-checks with cms.week0.PR_ac9e8379/53.0-004e1992113b32c3ea5cd84a3366d985

@fwyzard
Copy link
Contributor Author

fwyzard commented Feb 3, 2023

please test with cms-sw/cmsdist#8284,cms-sw/cmsdist#8285

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 3, 2023

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40678/34043

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 3, 2023

Pull request #40678 was updated. @makortel, @fwyzard can you please check and sign again.

@fwyzard
Copy link
Contributor Author

fwyzard commented Feb 3, 2023

All tests ran fine locally.

@fwyzard
Copy link
Contributor Author

fwyzard commented Feb 3, 2023

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 3, 2023

This pull request is fully signed and it will be integrated in one of the next master IBs after it passes the integration tests. This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @rappoccio (and backports should be raised in the release meeting by the corresponding L2)

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 3, 2023

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d475d4/30387/summary.html
COMMIT: a14e8fc
CMSSW: CMSSW_13_0_X_2023-02-03-1100/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/40678/30387/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-d475d4/30387/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d475d4/30387/git-merge-result

Comparison Summary

Summary:

  • You potentially removed 15 lines from the logs
  • Reco comparison results: 80 differences found in the comparisons
  • DQMHistoTests: Total files compared: 49
  • DQMHistoTests: Total histograms compared: 3555495
  • DQMHistoTests: Total failures: 3
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3555470
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 48 files compared)
  • Checked 213 log files, 164 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

@perrotta
Copy link
Contributor

perrotta commented Feb 5, 2023

+1

@cmsbuild cmsbuild merged commit 06f284e into cms-sw:master Feb 5, 2023
@fwyzard fwyzard deleted the ROCm_developments branch March 9, 2023 21:49
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.

3 participants