Empty xgboost4j-gpu and xgboost4j-spark-gpu jars

I tried to build jvm packages with GPU support by following the official documentation:

mvn -Duse.cuda=ON install

The command completes successfully, but the xgboost4j-gpu jar and xgboost4j-spark-gpu jar are empty. Building the shared library libxgboost.so with GPU support was successful, though. I am using the latest master branch.

Any help will be appreciated. Thanks!

I’ll take a look. In the meanwhile, you can download GPU-enabled XGBoost4J artifacts from Maven Central.

@zhangzhang10 Can you try https://github.com/dmlc/xgboost/pull/6216 ?

I’ve just tried PR6216. It can successfully build gpu jars. Thanks!