Allow plug-ins to be built by cmake (#3752)

* Remove references to AVX code.

* Allow plugins to be built by cmake
This commit is contained in:
Rory Mitchell
2018-10-04 22:03:52 +13:00
committed by GitHub
parent c6b5df67f6
commit 34522d56f0
4 changed files with 21 additions and 317 deletions

View File

@@ -12,7 +12,6 @@
#include <cmath>
#include <algorithm>
#include <utility>
#include "avx_helpers.h"
namespace xgboost {
namespace common {
@@ -25,10 +24,6 @@ XGBOOST_DEVICE inline float Sigmoid(float x) {
return 1.0f / (1.0f + expf(-x));
}
inline avx::Float8 Sigmoid(avx::Float8 x) {
return avx::Sigmoid(x);
}
/*!
* \brief Do inplace softmax transformaton on start to end
*