From f2a07dbba7e96f83d450d15d54087fead7edd371 Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Wed, 24 Apr 2024 07:11:23 +0200 Subject: [PATCH 1/2] for multi-arch set SCRAM_TARGET to auto MULTIARCH/SKYLAKE otherwise to default --- SCRAMV1.spec | 4 ++-- cmssw-queue-override.file | 7 +++++++ scram-project-build.file | 11 +++++++++-- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/SCRAMV1.spec b/SCRAMV1.spec index dc6ec99714a..5dfdf68d9e3 100644 --- a/SCRAMV1.spec +++ b/SCRAMV1.spec @@ -1,8 +1,8 @@ -### RPM lcg SCRAMV1 V3_00_68 +### RPM lcg SCRAMV1 V3_00_69 ## NOCOMPILER ## NO_VERSION_SUFFIX -%define tag 15a8797db3180ba786e6e131a9c4e3011b53bc68 +%define tag f06afeba5ec011dd62e723a6490513bfddec7012 %define branch SCRAMV3 %define github_user cms-sw Source: git+https://github.com/%{github_user}/SCRAM.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}-%{tag}.tgz diff --git a/cmssw-queue-override.file b/cmssw-queue-override.file index 0a0ac3ed8a9..f27a2bf005c 100644 --- a/cmssw-queue-override.file +++ b/cmssw-queue-override.file @@ -50,3 +50,10 @@ Source20: CXXModules.mk %define patchsrc20 cp %{_sourcedir}/CXXModules.mk config/SCRAM/GMake/CXXModules.mk %endif +%if "%(case %realversion in (*MULTIARCH*) echo true ;; (*) echo false ;; esac)" == "true" +%define scram_target_default auto +%endif + +%if "%(case %realversion in (*SKYLAKE*) echo true ;; (*) echo false ;; esac)" == "true" +%define scram_target_default auto +%endif diff --git a/scram-project-build.file b/scram-project-build.file index 53e0ea5dcb7..54957a0dc0e 100644 --- a/scram-project-build.file +++ b/scram-project-build.file @@ -6,11 +6,16 @@ %define cmssw_libs biglib/%{cmsplatf} lib/%{cmsplatf} %define scram_home_suffix %(echo %{directpkgreqs} | grep -q /SCRAMV1/V2_ && echo /src || true) %define scram_script_prefix %(echo %{directpkgreqs} | grep -q /SCRAMV1/V2_ && echo .pl || echo .py) + %if "%{?pkgname}" != "coral" %if "%{?package_vectorization}" != "" %define vectorized_build yes +%if "%{?scram_target_default:set}" != "set" +%define scram_target_default default +%endif %endif %endif + %if "%{?pgo_generate}" %undefine runGlimpse %undefine saveDeps @@ -55,7 +60,7 @@ BuildRequires: dwz %endif %if "%{?configtag:set}" != "set" -%define configtag V09-02-13 +%define configtag V09-02-14 %endif %if "%{?buildarch:set}" != "set" @@ -123,10 +128,12 @@ echo %{configtag} > %_builddir/config/config_tag %else --keys ENABLE_PGO=0 %endif + %if "%{?vectorized_build:set}" == "set" sed -i -e 's| SCRAM_TARGETS=.*"| SCRAM_TARGETS="%{package_vectorization}"|' %_builddir/config/Self.xml -sed -i -e 's|||' %_builddir/config/Self.xml +sed -i -e 's|||' %_builddir/config/Self.xml %endif + %if "%{?release_usercxxflags:set}" == "set" echo '' >> %_builddir/config/BuildFile.xml %endif From bd548e3c717ff656d827268286635352fed350e4 Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Wed, 24 Apr 2024 13:31:20 +0200 Subject: [PATCH 2/2] deploy new site based os mismatch check hook --- SCRAMV1.spec | 4 ++-- cms-common.spec | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SCRAMV1.spec b/SCRAMV1.spec index 5dfdf68d9e3..7e1324c0a27 100644 --- a/SCRAMV1.spec +++ b/SCRAMV1.spec @@ -1,8 +1,8 @@ -### RPM lcg SCRAMV1 V3_00_69 +### RPM lcg SCRAMV1 V3_00_70 ## NOCOMPILER ## NO_VERSION_SUFFIX -%define tag f06afeba5ec011dd62e723a6490513bfddec7012 +%define tag 121148347412a0362c99139de0aa67e06171909d %define branch SCRAMV3 %define github_user cms-sw Source: git+https://github.com/%{github_user}/SCRAM.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}-%{tag}.tgz diff --git a/cms-common.spec b/cms-common.spec index 2371d00f341..eba477d07a2 100644 --- a/cms-common.spec +++ b/cms-common.spec @@ -1,8 +1,8 @@ ### RPM cms cms-common 1.0 -## REVISION 1233 +## REVISION 1234 ## NOCOMPILER -%define tag 17fc23fb375c04706a08f3f607a35ac6761067e1 +%define tag f1821e6c6953b601cb5501ced2125b15b65d6e26 Source: git+https://github.com/cms-sw/cms-common.git?obj=master/%{tag}&export=%{n}-%{realversion}-%{tag}&output=/%{n}-%{realversion}-%{tag}.tgz %prep