-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6649 from riga/ml_software
Update ML related software
- Loading branch information
Showing
22 changed files
with
133 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Requires: py2-six | ||
|
||
%define RelocatePython %{i}/bin/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Requires: py2-six py2-termcolor py2-enum34 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Requires: py3-docutils py3-flit-core py3-pytoml py2-requests | ||
Requires: py2-docutils py3-flit-core py3-pytoml py2-requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Requires: py2-six py2-luigi py3-luigi py2-scinum | ||
|
||
%define RelocatePython %{i}/bin/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Requires: py2-wheel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Requires: py2-tornado py3-tornado py2-python-daemon py2-python-dateutil py2-enum34 | ||
|
||
%define PipPostBuildPy2 (cd "%{i}/bin" && for f in *; do cp ${f} ${f}2; done) | ||
%define PipPostBuildPy3 (cd "%{i}/bin" && for f in *; do mv ${f} ${f}3; done) | ||
%define RelocatePython %{i}/bin/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
%ifnarch x86_64 | ||
Patch0: py2-xgboost-arm-and-ppc | ||
Patch0: xgboost-arm-and-ppc-py-0-82 | ||
%endif | ||
Requires: py2-scipy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Requires: py3-numpy py2-protobuf py2-requests py2-onnx py3-onnxconverter-common py2-fire | ||
%define source0 https://github.com/onnx/keras-onnx/archive/v%{realversion}.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Requires: py2-numpy py3-numpy py2-onnx py2-protobuf py2-six | ||
%define source0 https://github.com/microsoft/onnxconverter-common/archive/v%{realversion}.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Requires: py3-numpy py2-onnx py2-protobuf py3-onnxconverter-common py3-skl2onnx py3-keras2onnx | ||
%define source0 https://github.com/onnx/onnxmltools/archive/v%{realversion}.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Requires: py2-six py3-numpy py3-scipy py2-protobuf py2-onnx py3-scikit-learn py3-onnxconverter-common | ||
%define source0 https://github.com/onnx/sklearn-onnx/archive/%{realversion}.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
Requires: py3-scipy | ||
Requires: py3-scipy xgboost | ||
%define patchsrc sed -i -e 's|^ outfiles = super().install()| return super().install()|' setup.py | ||
%define PipBuildOptions --install-option="--use-system-libxgboost" | ||
%define PipPostInstall \ | ||
mkdir -p "%{i}/${PYTHON3_LIB_SITE_PACKAGES}/xgboost/lib" && \ | ||
( cd "%{i}/${PYTHON3_LIB_SITE_PACKAGES}/xgboost/lib" && \ | ||
ln -s ../../../../../../../xgboost/${XGBOOST_VERSION}/lib64/libxgboost.so . \ | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Requires: py2-wheel py2-docutils py2-lockfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Requires: py2-numpy py3-numpy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/src/common/hist_util.cc b/src/common/hist_util.cc | ||
index 8e13403..9a68e88 100644 | ||
--- a/src/common/hist_util.cc | ||
+++ b/src/common/hist_util.cc | ||
@@ -17,14 +17,7 @@ | ||
#include "quantile.h" | ||
#include "./../tree/updater_quantile_hist.h" | ||
|
||
-#if defined(XGBOOST_MM_PREFETCH_PRESENT) | ||
- #include <xmmintrin.h> | ||
- #define PREFETCH_READ_T0(addr) _mm_prefetch(reinterpret_cast<const char*>(addr), _MM_HINT_T0) | ||
-#elif defined(XGBOOST_BUILTIN_PREFETCH_PRESENT) | ||
- #define PREFETCH_READ_T0(addr) __builtin_prefetch(reinterpret_cast<const char*>(addr), 0, 3) | ||
-#else // no SW pre-fetching available; PREFETCH_READ_T0 is no-op | ||
- #define PREFETCH_READ_T0(addr) do {} while (0) | ||
-#endif // defined(XGBOOST_MM_PREFETCH_PRESENT) | ||
+#define PREFETCH_READ_T0(addr) do {} while (0) | ||
|
||
namespace xgboost { | ||
namespace common { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
### RPM external xgboost-toolfile 1.0 | ||
Requires: xgboost | ||
|
||
%prep | ||
|
||
%build | ||
|
||
%install | ||
mkdir -p %i/etc/scram.d | ||
cat << \EOF_TOOLFILE >%i/etc/scram.d/xgboost.xml | ||
<tool name="xgboost" version="@TOOL_VERSION@"> | ||
<lib name="xgboost"/> | ||
<client> | ||
<environment name="XGBOOST_BASE" default="@TOOL_ROOT@"/> | ||
<environment name="BINDIR" default="$XGBOOST_BASE/bin"/> | ||
<environment name="LIBDIR" default="$XGBOOST_BASE/lib64"/> | ||
<environment name="INCLUDE" default="$XGBOOST_BASE/include"/> | ||
</client> | ||
<runtime name="PATH" value="$BINDIR" type="path"/> | ||
<runtime name="ROOT_INCLUDE_PATH" value="$INCLUDE" type="path"/> | ||
</tool> | ||
EOF_TOOLFILE | ||
|
||
## IMPORT scram-tools-post |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
### RPM external xgboost 1.3.3 | ||
|
||
BuildRequires: cmake | ||
Source: git+https://github.com/dmlc/xgboost.git?obj=master/v%{realversion}&export=%{n}-%{realversion}&submodules=1&output=/%{n}-%{realversion}.tgz | ||
Patch0: xgboost-arm-and-ppc | ||
|
||
%prep | ||
%setup -q -n %{n}-%{realversion} | ||
%ifnarch x86_64 | ||
%patch0 -p1 | ||
%endif | ||
|
||
%build | ||
rm -rf ../build; mkdir ../build; cd ../build | ||
cmake ../%{n}-%{realversion} \ | ||
-DCMAKE_INSTALL_PREFIX=%{i} \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DUSE_CUDA=OFF | ||
|
||
%install | ||
cd ../build | ||
make %{makeprocesses} | ||
make install |