Skip to content

Commit

Permalink
Merge pull request #7781 from aandvalenzuela/IB/CMSSW_12_4_X/master
Browse files Browse the repository at this point in the history
Add cpu_features library
  • Loading branch information
smuzaffar committed Apr 14, 2022
2 parents 385689c + 98ef86b commit 0a5820e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmssw-tool-conf.spec
Expand Up @@ -17,6 +17,7 @@ Requires: classlib
Requires: clhep
Requires: coral
Requires: cppunit
Requires: cpu_features
Requires: curl
Requires: das_client
Requires: db6
Expand Down
16 changes: 16 additions & 0 deletions cpu_features.spec
@@ -0,0 +1,16 @@
### RPM external cpu_features 0.7.0

Source: https://github.com/google/cpu_features/archive/refs/tags/v%{realversion}.tar.gz
BuildRequires: gmake cmake

%prep
%setup -n %{n}-%{realversion}

%build
cmake -S. -Bbuild \
-DBUILD_TESTING=OFF \
-DCMAKE_INSTALL_PREFIX:STRING=%{i}

%install
cd build
make install
11 changes: 11 additions & 0 deletions scram-tools.file/tools/cpu_features/cpu_features.xml
@@ -0,0 +1,11 @@
<tool name="cpu_features" version="@TOOL_VERSION@">
<info url="https://github.com/google/cpu_features"/>
<lib name="cpu_features"/>
<client>
<environment name="CPU_FEATURES_BASE" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$CPU_FEATURES_BASE/lib64"/>
<environment name="INCLUDE" default="$CPU_FEATURES_BASE/include"/>
<environment name="BINDIR" default="$CPU_FEATURES_BASE/bin"/>
</client>
<runtime name="PATH" value="$BINDIR" type="path"/>
</tool>

0 comments on commit 0a5820e

Please sign in to comment.