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

Backport MXNet and DeepBoostedJet models. #4326

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion data-RecoBTag-Combined.spec
@@ -1,4 +1,4 @@
### RPM cms data-RecoBTag-Combined V01-00-13
### RPM cms data-RecoBTag-Combined V01-00-14

%prep

Expand Down
2 changes: 1 addition & 1 deletion mxnet-predict-toolfile.spec
@@ -1,4 +1,4 @@
### RPM external mxnet-predict-toolfile 1.2.0
### RPM external mxnet-predict-toolfile 1.2.1.mod3
Requires: mxnet-predict
%prep

Expand Down
21 changes: 12 additions & 9 deletions mxnet-predict.spec
@@ -1,22 +1,25 @@
### RPM external mxnet-predict 1.2.0
%define projectname mxnet-predict
%define releasename apache-mxnet-src-%{realversion}-incubating
Source: https://github.com/apache/incubator-mxnet/releases/download/%{realversion}/apache-mxnet-src-%{realversion}-incubating.tar.gz
### RPM external mxnet-predict 1.2.1
%define tag 97171b96b2b7efc78eccfbe0a0c2561a377ce153
%define branch 1.2.1.mod3
%define github_user cms-externals
Source: git+https://github.com/%{github_user}/incubator-mxnet.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}-%{tag}.tgz

Requires: OpenBLAS

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

%build
make %{makeprocesses} USE_OPENCV=0 USE_OPENMP=0 USE_BLAS=openblas USE_CPP_PACKAGE=1 USE_F16C=0 \
ADD_LDFLAGS="-L$OPENBLAS_ROOT/lib" \
ADD_CFLAGS="-I$OPENBLAS_ROOT/include -DDISABLE_OPENMP=1 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMSHADOW_FORCE_STREAM -DMXNET_PREDICT_ONLY=1"
ADD_CFLAGS="-I$OPENBLAS_ROOT/include -DDISABLE_OPENMP=1 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMXNET_PREDICT_ONLY=1 -DMXNET_THREAD_LOCAL_ENGINE=1"

%install
mkdir -p %{i}/{lib,include}
mv lib/libmxnet.so %{i}/lib/libmxnetpredict.so
mv include/* %{i}/include
mv cpp-package/include/* %{i}/include
mv lib/libmxnet.so %{i}/lib/libmxnetpredict.so
mv include/* %{i}/include
mv 3rdparty/dmlc-core/include/* %{i}/include
mv 3rdparty/tvm/nnvm/include/* %{i}/include
mv cpp-package/include/* %{i}/include