Skip to content

Commit

Permalink
Merge pull request #8307 from cms-sw/hls4mlemulatorextras
Browse files Browse the repository at this point in the history
Added CICADA and hls4mlEmulatorExtras specs
  • Loading branch information
smuzaffar authored Feb 14, 2023
2 parents 005bae3 + db6984d commit a7a5154
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 1 deletion.
14 changes: 14 additions & 0 deletions CICADA.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
### RPM external CICADA 1.1.1
Source: https://github.com/cms-hls4ml/%{n}/archive/refs/tags/v%{realversion}.tar.gz
Requires: hls4mlEmulatorExtras hls
BuildRequires: gmake

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

%build
make %{makeprocesses} EMULATOR_EXTRAS=${HLS4MLEMULATOREXTRAS_ROOT} HLS_ROOT=${HLS_ROOT}

%install
make PREFIX=%{i} install

3 changes: 2 additions & 1 deletion cmssw-tool-conf.spec
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
### RPM cms cmssw-tool-conf 53.0
### RPM cms cmssw-tool-conf 54.0
# With cmsBuild, change the above version only when a new tool is added

## INSTALL_DEPENDENCIES cmsLHEtoEOSManager gcc-fixincludes cmssw-osenv cms-git-tools SCRAMV2
## UPLOAD_DEPENDENCIES dqmgui

Requires: CICADA
Requires: crab
Requires: cmssw-wm-tools
Requires: google-benchmark
Expand Down
12 changes: 12 additions & 0 deletions hls4mlEmulatorExtras.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
### RPM external hls4mlEmulatorExtras 1.1.1
Source: https://github.com/cms-hls4ml/%{n}/archive/refs/tags/v%{realversion}.tar.gz
BuildRequires: gmake

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

%build
make %{makeprocesses}

%install
make PREFIX=%{i} install
6 changes: 6 additions & 0 deletions scram-tools.file/tools/CICADA/cicada.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<tool name="cicada" version="@TOOL_VERSION@">
<client>
<environment name="CICADA_BASE" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$CICADA_BASE/lib64"/>
</client>
</tool>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<tool name="hls4mlemulatorextras" version="@TOOL_VERSION@">
<lib name="emulator_interface"/>
<use name="sockets"/>
<client>
<environment name="HLS4MLEMULATOREXTRAS_BASE" default="@TOOL_ROOT@"/>
<environment name="INCLUDE" default="$HLS4MLEMULATOREXTRAS_BASE/include"/>
<environment name="LIBDIR" default="$HLS4MLEMULATOREXTRAS_BASE/lib64"/>
</client>
</tool>

0 comments on commit a7a5154

Please sign in to comment.