# Conflict with XGBoost when Thrust is enabled

**URL:** <https://discuss.tvm.apache.org/t/conflict-with-xgboost-when-thrust-is-enabled/6889>\
**Category:** Development\
**Created:** [June 4, 2020, 11:47pm UTC](https://discuss.tvm.apache.org/t/conflict-with-xgboost-when-thrust-is-enabled/6889 "2020-06-04T23:47:23Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![comaniac](https://discuss.tvm.apache.org/user_avatar/discuss.tvm.apache.org/comaniac/32/899_2.png) [@comaniac](https://discuss.tvm.apache.org/u/comaniac)\
**Post date:** [November 18, 2020, 11:41pm UTC](https://discuss.tvm.apache.org/t/conflict-with-xgboost-when-thrust-is-enabled/6889/6 "2020-11-18T23:41:31Z")

</div>

I got the same problem and filed a PR to workaround it.

> <https://github.com/apache/tvm/pull/6939>
>
> I encountered the same issue as this one: https://discuss.tvm.apache.org/t/confl…ict-with-xgboost-when-thrust-is-enabled/6889 with CUDA 10.0 and thrust enabled after upgrading XGBoost to 1.1.0. Since XGBoost is imported by AutoTVM, and AutoTVM is used everywhere (e.g., TOPI, VM, etc), I got the error even with only \`from tvm import relay\`, as mentioned in the latest reply in the post.
> 
> Since we cannot reproduce this error in docker and it's a potential issue, this PR makes the XGBoost import lazy.
> 
> cc @merrymercy @tqchen @vinx13 @zhiics

---

_[View the full topic](https://discuss.tvm.apache.org/t/conflict-with-xgboost-when-thrust-is-enabled/6889)._
