Add support inference on SYCL devices (#9800)
--------- Co-authored-by: Dmitry Razdoburdin <> Co-authored-by: Nikolay Petrov <nikolay.a.petrov@intel.com> Co-authored-by: Alexandra <alexandra.epanchinzeva@intel.com>
This commit is contained in:
committed by
GitHub
parent
7196c9d95e
commit
381f1d3dc9
@@ -169,10 +169,10 @@ inline void AssertNCCLSupport() {
|
||||
#endif // !defined(XGBOOST_USE_NCCL)
|
||||
}
|
||||
|
||||
inline void AssertOneAPISupport() {
|
||||
#ifndef XGBOOST_USE_ONEAPI
|
||||
LOG(FATAL) << "XGBoost version not compiled with OneAPI support.";
|
||||
#endif // XGBOOST_USE_ONEAPI
|
||||
inline void AssertSYCLSupport() {
|
||||
#ifndef XGBOOST_USE_SYCL
|
||||
LOG(FATAL) << "XGBoost version not compiled with SYCL support.";
|
||||
#endif // XGBOOST_USE_SYCL
|
||||
}
|
||||
|
||||
void SetDevice(std::int32_t device);
|
||||
|
||||
Reference in New Issue
Block a user