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

Use C++20 with more packages #8558

Merged
merged 17 commits into from
Aug 7, 2023
Merged

Conversation

iarspider
Copy link
Contributor

No description provided.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @iarspider for branch IB/CMSSW_13_2_X/g12_cpp20.

@cmsbuild, @smuzaffar, @aandvalenzuela, @iarspider can you please review it and eventually sign? Thanks.
@perrotta, @dpiparo, @rappoccio you are the release manager for this.
cms-bot commands are listed here

@iarspider
Copy link
Contributor Author

please test for CMSSW_13_2_CPP20_X

@@ -20,7 +20,7 @@ index adf3b19..fabdbf0 100644
depends=glob("../include/*.h"),
include_dirs=[incdir, os.path.join(srcdir, "pyext", "professor2")],
- extra_compile_args="-std=c++11 -O3 -Wno-unused-but-set-variable -Wno-sign-compare".split(),
+ extra_compile_args="-std=c++11 -O3 -mcpu=native -Wno-unused-but-set-variable -Wno-sign-compare".split(),
+ extra_compile_args="-std=c++20 -O3 -mcpu=native -Wno-unused-but-set-variable -Wno-sign-compare".split(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iarspider , may be for cpp std we just patch the Makefile using perl/sed comamnd e.g.

#Make sure the default c++sdt stand is c++11 in Makefile
grep -q 'std=c++11' Makefile
#Change c++ std to %{cms_cxx_standard}
sed  -e 's|-std=c++11|-std=c++%{cms_cxx_standard}|' Makefile

@cmsbuild
Copy link
Contributor

Pull request #8558 was updated.

@iarspider
Copy link
Contributor Author

please test for CMSSW_13_2_CPP20_X

professor2.spec Outdated Show resolved Hide resolved
@cmsbuild
Copy link
Contributor

Pull request #8558 was updated.

@iarspider
Copy link
Contributor Author

please test for CMSSW_13_2_CPP20_X

@cmsbuild
Copy link
Contributor

-1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ca0d3f/33299/summary.html
COMMIT: 40cca4b
CMSSW: CMSSW_13_2_CPP20_X_2023-06-19-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmsdist/8558/33299/install.sh to create a dev area with all the needed externals and cmssw changes.

External Build

I found compilation error when building:

[ 65%] Linking CXX executable ../gnu_12.3_cxx20_64_relwithdebinfo/test_join_node
[ 65%] Built target test_join_node
[ 66%] Linking CXX executable ../gnu_12.3_cxx20_64_relwithdebinfo/test_eh_flow_graph
[ 66%] Built target test_eh_flow_graph
make: *** [Makefile:166: all] Error 2
error: Bad exit status from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/tmp/rpm-tmp.adXj3K (%build)


RPM build errors:
line 37: It's not recommended to have unversioned Obsoletes: Obsoletes: external+tbb+v2021.9.0-cf0e1f5166ce7b9d664b6a9dff370f5f
Bad exit status from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/tmp/rpm-tmp.adXj3K (%build)


@cmsbuild
Copy link
Contributor

-1

Failed Tests: Build
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ca0d3f/33856/summary.html
COMMIT: 7713bbd
CMSSW: CMSSW_13_3_CPP20_X_2023-07-21-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmsdist/8558/33856/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-ca0d3f/33856/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ca0d3f/33856/git-merge-result

Build

I found compilation error when building:

>> Subsystem RecoRomanPot built
>> Subsystem SimRomanPot built
Copying tmp/el8_amd64_gcc12/src/HeterogeneousCore/AlpakaInterface/test/alpakaTestKernelROCmAsync/libalpakaTestKernelROCmAsync_rocm.a to productstore area:
cp: cannot stat 'tmp/el8_amd64_gcc12/src/HeterogeneousCore/AlpakaInterface/test/alpakaTestKernelROCmAsync/libalpakaTestKernelROCmAsync_rocm.a': No such file or directory
>> Deleted: tmp/el8_amd64_gcc12/src/HeterogeneousCore/AlpakaInterface/test/alpakaTestKernelROCmAsync/libalpakaTestKernelROCmAsync_rocm.a
gmake: *** [config/SCRAM/GMake/Makefile.rules:1793: tmp/el8_amd64_gcc12/src/HeterogeneousCore/AlpakaInterface/test/alpakaTestKernelROCmAsync/libalpakaTestKernelROCmAsync_rocm.a] Error 1
Copying tmp/el8_amd64_gcc12/src/HeterogeneousCore/ROCmUtilities/bin/rocmComputeCapabilities/librocmComputeCapabilities_rocm.a to productstore area:
Copying tmp/el8_amd64_gcc12/src/HeterogeneousCore/ROCmUtilities/bin/rocmIsEnabled/librocmIsEnabled_rocm.a to productstore area:
Copying tmp/el8_amd64_gcc12/src/HeterogeneousTest/CUDADevice/src/HeterogeneousTestCUDADevice/libHeterogeneousTestCUDADevice_nv.a to productstore area:
Copying tmp/el8_amd64_gcc12/src/HeterogeneousTest/CUDAKernel/src/HeterogeneousTestCUDAKernel/libHeterogeneousTestCUDAKernel_nv.a to productstore area:
Copying tmp/el8_amd64_gcc12/src/HeterogeneousTest/CUDAWrapper/src/HeterogeneousTestCUDAWrapper/libHeterogeneousTestCUDAWrapper_nv.a to productstore area:


@@ -214,16 +216,16 @@ notebook-shim==0.2.2
numexpr==2.8.4
# setuptools version <64 is needed by numpy: https://github.com/pypa/setuptools/issues/3549
# NO_AUTO_UPDATE: update together with tensorflow
numpy==1.23.5
numpy==1.24.3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this work with current version of TF?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With 2.6.4? IIRC, no.

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 1, 2023

Pull request #8558 was updated.

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 5, 2023

Pull request #8558 was updated.

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 5, 2023

Pull request #8558 was updated.

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 7, 2023

-1

Failed Tests: Build
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ca0d3f/34112/summary.html
COMMIT: 3cf218d
CMSSW: CMSSW_13_3_X_2023-08-06-0000/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmsdist/8558/34112/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-ca0d3f/34112/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ca0d3f/34112/git-merge-result

Build

I found compilation error when building:

Copying tmp/el8_amd64_gcc11/src/HeterogeneousCore/ROCmUtilities/bin/rocmComputeCapabilities/librocmComputeCapabilities_rocm.a to productstore area:
Copying tmp/el8_amd64_gcc11/src/HeterogeneousCore/ROCmUtilities/bin/rocmIsEnabled/librocmIsEnabled_rocm.a to productstore area:
Copying tmp/el8_amd64_gcc11/src/HeterogeneousCore/AlpakaInterface/test/alpakaTestKernelROCmAsync/libalpakaTestKernelROCmAsync_rocm.a to productstore area:
cp: cannot stat 'tmp/el8_amd64_gcc11/src/HeterogeneousCore/AlpakaInterface/test/alpakaTestKernelROCmAsync/libalpakaTestKernelROCmAsync_rocm.a': No such file or directory
>> Deleted: tmp/el8_amd64_gcc11/src/HeterogeneousCore/AlpakaInterface/test/alpakaTestKernelROCmAsync/libalpakaTestKernelROCmAsync_rocm.a
gmake: *** [config/SCRAM/GMake/Makefile.rules:1793: tmp/el8_amd64_gcc11/src/HeterogeneousCore/AlpakaInterface/test/alpakaTestKernelROCmAsync/libalpakaTestKernelROCmAsync_rocm.a] Error 1
Copying tmp/el8_amd64_gcc11/src/HeterogeneousTest/CUDADevice/src/HeterogeneousTestCUDADevice/libHeterogeneousTestCUDADevice_nv.a to productstore area:
Copying tmp/el8_amd64_gcc11/src/HeterogeneousTest/ROCmDevice/src/HeterogeneousTestROCmDevice/libHeterogeneousTestROCmDevice_rocm.a to productstore area:
Copying tmp/el8_amd64_gcc11/src/HeterogeneousTest/ROCmDevice/test/testRocmDeviceAddition/libtestRocmDeviceAddition_rocm.a to productstore area:
cp: cannot stat 'tmp/el8_amd64_gcc11/src/HeterogeneousTest/ROCmDevice/test/testRocmDeviceAddition/libtestRocmDeviceAddition_rocm.a': No such file or directory
>> Deleted: tmp/el8_amd64_gcc11/src/HeterogeneousTest/ROCmDevice/test/testRocmDeviceAddition/libtestRocmDeviceAddition_rocm.a


@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 7, 2023

Pull request #8558 was updated.

@smuzaffar
Copy link
Contributor

please test for CMSSW_13_3_CPP20_X

@smuzaffar
Copy link
Contributor

lets merge it

@smuzaffar smuzaffar merged commit aae4fa6 into IB/CMSSW_13_3_X/g12_cpp20 Aug 7, 2023
@smuzaffar smuzaffar deleted the more-cpp20 branch August 7, 2023 21:29
@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 7, 2023

-1

Failed Tests: Build
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ca0d3f/34134/summary.html
COMMIT: 18cd323
CMSSW: CMSSW_13_3_CPP20_X_2023-08-04-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmsdist/8558/34134/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-ca0d3f/34134/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ca0d3f/34134/git-merge-result

Build

I found compilation error when building:

>> Leaving Package FWCore/Version
>> Package FWCore/Version built
Copying tmp/el8_amd64_gcc12/src/HeterogeneousCore/AlpakaInterface/test/alpakaTestKernelROCmAsync/libalpakaTestKernelROCmAsync_rocm.a to productstore area:
cp: cannot stat 'tmp/el8_amd64_gcc12/src/HeterogeneousCore/AlpakaInterface/test/alpakaTestKernelROCmAsync/libalpakaTestKernelROCmAsync_rocm.a': No such file or directory
>> Deleted: tmp/el8_amd64_gcc12/src/HeterogeneousCore/AlpakaInterface/test/alpakaTestKernelROCmAsync/libalpakaTestKernelROCmAsync_rocm.a
gmake: *** [config/SCRAM/GMake/Makefile.rules:1793: tmp/el8_amd64_gcc12/src/HeterogeneousCore/AlpakaInterface/test/alpakaTestKernelROCmAsync/libalpakaTestKernelROCmAsync_rocm.a] Error 1
Copying tmp/el8_amd64_gcc12/src/HeterogeneousCore/ROCmUtilities/bin/rocmComputeCapabilities/librocmComputeCapabilities_rocm.a to productstore area:
Copying tmp/el8_amd64_gcc12/src/HeterogeneousCore/ROCmUtilities/bin/rocmIsEnabled/librocmIsEnabled_rocm.a to productstore area:
Copying tmp/el8_amd64_gcc12/src/HeterogeneousTest/CUDADevice/src/HeterogeneousTestCUDADevice/libHeterogeneousTestCUDADevice_nv.a to productstore area:
Copying tmp/el8_amd64_gcc12/src/HeterogeneousTest/CUDAKernel/src/HeterogeneousTestCUDAKernel/libHeterogeneousTestCUDAKernel_nv.a to productstore area:
Copying tmp/el8_amd64_gcc12/src/HeterogeneousTest/ROCmDevice/src/HeterogeneousTestROCmDevice/libHeterogeneousTestROCmDevice_rocm.a to productstore area:


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