Skip to content

Commit

Permalink
Merge pull request #8979 from cms-sw/gbl-multiarch-enabled
Browse files Browse the repository at this point in the history
Build gbl for multivectorization release due to its eigen dependency
  • Loading branch information
smuzaffar authored Feb 5, 2024
2 parents 14ef1e3 + b7f6184 commit da57fa1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmssw-vectorization.file
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
%define vectorized_packages zlib fastjet tensorflow-sources tensorflow OpenBLAS rivet
%define vectorized_packages zlib fastjet tensorflow-sources tensorflow OpenBLAS rivet gbl
%{expand:%(for t in %{vectorized_packages} ; do echo Requires: $t; for v in %{package_vectorization}; do echo Requires: ${t}_${v}; done; done)}
4 changes: 2 additions & 2 deletions gbl.spec
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
### RPM external gbl V02-04-01
## INCLUDE cpp-standard

%define tag 31e726d777fe93cdbed0c363dc15f803f7767f40
Source: git+https://gitlab.desy.de/claus.kleinwort/general-broken-lines.git?obj=main/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}.tgz


BuildRequires: cmake
Requires: eigen

Expand All @@ -19,8 +17,10 @@ cd build
cmake ../cpp \
-DCMAKE_INSTALL_PREFIX=%{i} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DEIGEN3_INCLUDE_DIR=${EIGEN_ROOT}/include/eigen3 \
-DSUPPORT_ROOT=False \
-DCMAKE_CXX_FLAGS="-DEIGEN_MAX_ALIGN_BYTES=64 -msse3" \
-DCMAKE_CXX_STANDARD=%{cms_cxx_standard}

make %{makeprocesses}
Expand Down
1 change: 1 addition & 0 deletions scram-tools.file/tools/eigen/eigen.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
</client>
<runtime name="ROOT_INCLUDE_PATH" value="$INCLUDE" type="path"/>
<flags CPPDEFINES="EIGEN_DONT_PARALLELIZE"/>
<flags CPPDEFINES="EIGEN_MAX_ALIGN_BYTES=64"/>
<flags CUDA_FLAGS="--diag-suppress 20014"/>
</tool>
5 changes: 5 additions & 0 deletions scram-tools.file/tools/gbl/vectorized.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<tool name="gbl_@TOOL_VECTORIZATION@" version="@TOOL_VERSION@">
<client>
<environment name="@TOOL_VECTORIZATION_KEY@_LIBDIR" default="@TOOL_ROOT@/lib" type="path"/>
</client>
</tool>
1 change: 1 addition & 0 deletions vectorization/cmsdist_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"tensorflow",
"OpenBLAS",
"rivet",
"gbl",
]
VALID_TARGETS = {
"nehalem": "-march=nehalem",
Expand Down

0 comments on commit da57fa1

Please sign in to comment.