diff --git a/jvm-packages/xgboost4j-gpu/src/native/xgboost4j-gpu.hip.cc b/jvm-packages/xgboost4j-gpu/src/native/xgboost4j-gpu.hip similarity index 100% rename from jvm-packages/xgboost4j-gpu/src/native/xgboost4j-gpu.hip.cc rename to jvm-packages/xgboost4j-gpu/src/native/xgboost4j-gpu.hip diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8749c07fa..052f70b4c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -17,7 +17,7 @@ if (USE_CUDA) endif (USE_CUDA) if (USE_HIP) - file(GLOB_RECURSE HIP_SOURCES *.hip.cc *.hip.h) + file(GLOB_RECURSE HIP_SOURCES *.hip *.hip.h) target_sources(objxgboost PRIVATE ${HIP_SOURCES}) endif (USE_HIP) diff --git a/src/c_api/c_api.hip.cc b/src/c_api/c_api.hip similarity index 100% rename from src/c_api/c_api.hip.cc rename to src/c_api/c_api.hip diff --git a/src/collective/communicator.hip.cc b/src/collective/communicator.hip similarity index 100% rename from src/collective/communicator.hip.cc rename to src/collective/communicator.hip diff --git a/src/common/common.hip.cc b/src/common/common.hip similarity index 100% rename from src/common/common.hip.cc rename to src/common/common.hip diff --git a/src/common/hist_util.hip.cc b/src/common/hist_util.hip similarity index 100% rename from src/common/hist_util.hip.cc rename to src/common/hist_util.hip diff --git a/src/common/host_device_vector.hip.cc b/src/common/host_device_vector.hip similarity index 100% rename from src/common/host_device_vector.hip.cc rename to src/common/host_device_vector.hip diff --git a/src/common/numeric.hip.cc b/src/common/numeric.hip similarity index 100% rename from src/common/numeric.hip.cc rename to src/common/numeric.hip diff --git a/src/common/quantile.hip.cc b/src/common/quantile.hip similarity index 100% rename from src/common/quantile.hip.cc rename to src/common/quantile.hip diff --git a/src/common/stats.hip.cc b/src/common/stats.hip similarity index 100% rename from src/common/stats.hip.cc rename to src/common/stats.hip diff --git a/src/context.hip.cc b/src/context.hip similarity index 100% rename from src/context.hip.cc rename to src/context.hip diff --git a/src/data/array_interface.hip.cc b/src/data/array_interface.hip similarity index 100% rename from src/data/array_interface.hip.cc rename to src/data/array_interface.hip diff --git a/src/data/data.hip.cc b/src/data/data.hip similarity index 100% rename from src/data/data.hip.cc rename to src/data/data.hip diff --git a/src/data/ellpack_page.hip.cc b/src/data/ellpack_page.hip similarity index 100% rename from src/data/ellpack_page.hip.cc rename to src/data/ellpack_page.hip diff --git a/src/data/ellpack_page_raw_format.hip.cc b/src/data/ellpack_page_raw_format.hip similarity index 100% rename from src/data/ellpack_page_raw_format.hip.cc rename to src/data/ellpack_page_raw_format.hip diff --git a/src/data/ellpack_page_source.hip.cc b/src/data/ellpack_page_source.hip similarity index 100% rename from src/data/ellpack_page_source.hip.cc rename to src/data/ellpack_page_source.hip diff --git a/src/data/gradient_index.hip.cc b/src/data/gradient_index.hip similarity index 100% rename from src/data/gradient_index.hip.cc rename to src/data/gradient_index.hip diff --git a/src/data/iterative_dmatrix.hip.cc b/src/data/iterative_dmatrix.hip similarity index 100% rename from src/data/iterative_dmatrix.hip.cc rename to src/data/iterative_dmatrix.hip diff --git a/src/data/proxy_dmatrix.hip.cc b/src/data/proxy_dmatrix.hip similarity index 100% rename from src/data/proxy_dmatrix.hip.cc rename to src/data/proxy_dmatrix.hip diff --git a/src/data/simple_dmatrix.hip.cc b/src/data/simple_dmatrix.hip similarity index 100% rename from src/data/simple_dmatrix.hip.cc rename to src/data/simple_dmatrix.hip diff --git a/src/data/sparse_page_dmatrix.hip.cc b/src/data/sparse_page_dmatrix.hip similarity index 100% rename from src/data/sparse_page_dmatrix.hip.cc rename to src/data/sparse_page_dmatrix.hip diff --git a/src/data/sparse_page_source.hip.cc b/src/data/sparse_page_source.hip similarity index 100% rename from src/data/sparse_page_source.hip.cc rename to src/data/sparse_page_source.hip diff --git a/src/gbm/gbtree.hip.cc b/src/gbm/gbtree.hip similarity index 100% rename from src/gbm/gbtree.hip.cc rename to src/gbm/gbtree.hip diff --git a/src/linear/updater_gpu_coordinate.hip.cc b/src/linear/updater_gpu_coordinate.hip similarity index 100% rename from src/linear/updater_gpu_coordinate.hip.cc rename to src/linear/updater_gpu_coordinate.hip diff --git a/src/metric/auc.hip.cc b/src/metric/auc.hip similarity index 100% rename from src/metric/auc.hip.cc rename to src/metric/auc.hip diff --git a/src/metric/elementwise_metric.hip.cc b/src/metric/elementwise_metric.hip similarity index 100% rename from src/metric/elementwise_metric.hip.cc rename to src/metric/elementwise_metric.hip diff --git a/src/metric/multiclass_metric.hip.cc b/src/metric/multiclass_metric.hip similarity index 100% rename from src/metric/multiclass_metric.hip.cc rename to src/metric/multiclass_metric.hip diff --git a/src/metric/rank_metric.hip.cc b/src/metric/rank_metric.hip similarity index 100% rename from src/metric/rank_metric.hip.cc rename to src/metric/rank_metric.hip diff --git a/src/metric/survival_metric.hip.cc b/src/metric/survival_metric.hip similarity index 100% rename from src/metric/survival_metric.hip.cc rename to src/metric/survival_metric.hip diff --git a/src/objective/adaptive.hip.cc b/src/objective/adaptive.hip similarity index 100% rename from src/objective/adaptive.hip.cc rename to src/objective/adaptive.hip diff --git a/src/objective/aft_obj.hip.cc b/src/objective/aft_obj.hip similarity index 100% rename from src/objective/aft_obj.hip.cc rename to src/objective/aft_obj.hip diff --git a/src/objective/hinge.hip.cc b/src/objective/hinge.hip similarity index 100% rename from src/objective/hinge.hip.cc rename to src/objective/hinge.hip diff --git a/src/objective/multiclass_obj.hip.cc b/src/objective/multiclass_obj.hip similarity index 100% rename from src/objective/multiclass_obj.hip.cc rename to src/objective/multiclass_obj.hip diff --git a/src/objective/rank_obj.hip.cc b/src/objective/rank_obj.hip similarity index 100% rename from src/objective/rank_obj.hip.cc rename to src/objective/rank_obj.hip diff --git a/src/objective/regression_obj.hip.cc b/src/objective/regression_obj.hip similarity index 100% rename from src/objective/regression_obj.hip.cc rename to src/objective/regression_obj.hip diff --git a/src/predictor/gpu_predictor.hip.cc b/src/predictor/gpu_predictor.hip similarity index 100% rename from src/predictor/gpu_predictor.hip.cc rename to src/predictor/gpu_predictor.hip diff --git a/src/tree/constraints.hip.cc b/src/tree/constraints.hip similarity index 100% rename from src/tree/constraints.hip.cc rename to src/tree/constraints.hip diff --git a/src/tree/fit_stump.hip.cc b/src/tree/fit_stump.hip similarity index 100% rename from src/tree/fit_stump.hip.cc rename to src/tree/fit_stump.hip diff --git a/src/tree/gpu_hist/evaluate_splits.hip.cc b/src/tree/gpu_hist/evaluate_splits.hip similarity index 100% rename from src/tree/gpu_hist/evaluate_splits.hip.cc rename to src/tree/gpu_hist/evaluate_splits.hip diff --git a/src/tree/gpu_hist/evaluator.hip.cc b/src/tree/gpu_hist/evaluator.hip similarity index 100% rename from src/tree/gpu_hist/evaluator.hip.cc rename to src/tree/gpu_hist/evaluator.hip diff --git a/src/tree/gpu_hist/feature_groups.hip.cc b/src/tree/gpu_hist/feature_groups.hip similarity index 100% rename from src/tree/gpu_hist/feature_groups.hip.cc rename to src/tree/gpu_hist/feature_groups.hip diff --git a/src/tree/gpu_hist/gradient_based_sampler.hip.cc b/src/tree/gpu_hist/gradient_based_sampler.hip similarity index 100% rename from src/tree/gpu_hist/gradient_based_sampler.hip.cc rename to src/tree/gpu_hist/gradient_based_sampler.hip diff --git a/src/tree/gpu_hist/histogram.hip.cc b/src/tree/gpu_hist/histogram.hip similarity index 100% rename from src/tree/gpu_hist/histogram.hip.cc rename to src/tree/gpu_hist/histogram.hip diff --git a/src/tree/gpu_hist/row_partitioner.hip.cc b/src/tree/gpu_hist/row_partitioner.hip similarity index 100% rename from src/tree/gpu_hist/row_partitioner.hip.cc rename to src/tree/gpu_hist/row_partitioner.hip diff --git a/src/tree/updater_gpu_hist.hip.cc b/src/tree/updater_gpu_hist.hip similarity index 100% rename from src/tree/updater_gpu_hist.hip.cc rename to src/tree/updater_gpu_hist.hip diff --git a/tests/cpp/collective/test_nccl_device_communicator.hip.cc b/tests/cpp/collective/test_nccl_device_communicator.hip similarity index 100% rename from tests/cpp/collective/test_nccl_device_communicator.hip.cc rename to tests/cpp/collective/test_nccl_device_communicator.hip diff --git a/tests/cpp/common/test_algorithm.hip.cc b/tests/cpp/common/test_algorithm.hip similarity index 100% rename from tests/cpp/common/test_algorithm.hip.cc rename to tests/cpp/common/test_algorithm.hip diff --git a/tests/cpp/common/test_bitfield.hip.cc b/tests/cpp/common/test_bitfield.hip similarity index 100% rename from tests/cpp/common/test_bitfield.hip.cc rename to tests/cpp/common/test_bitfield.hip diff --git a/tests/cpp/common/test_device_helpers.hip.cc b/tests/cpp/common/test_device_helpers.hip similarity index 100% rename from tests/cpp/common/test_device_helpers.hip.cc rename to tests/cpp/common/test_device_helpers.hip diff --git a/tests/cpp/common/test_gpu_compressed_iterator.hip.cc b/tests/cpp/common/test_gpu_compressed_iterator.hip similarity index 100% rename from tests/cpp/common/test_gpu_compressed_iterator.hip.cc rename to tests/cpp/common/test_gpu_compressed_iterator.hip diff --git a/tests/cpp/common/test_hist_util.hip.cc b/tests/cpp/common/test_hist_util.hip similarity index 100% rename from tests/cpp/common/test_hist_util.hip.cc rename to tests/cpp/common/test_hist_util.hip diff --git a/tests/cpp/common/test_host_device_vector.hip.cc b/tests/cpp/common/test_host_device_vector.hip similarity index 100% rename from tests/cpp/common/test_host_device_vector.hip.cc rename to tests/cpp/common/test_host_device_vector.hip diff --git a/tests/cpp/common/test_linalg.hip.cc b/tests/cpp/common/test_linalg.hip similarity index 100% rename from tests/cpp/common/test_linalg.hip.cc rename to tests/cpp/common/test_linalg.hip diff --git a/tests/cpp/common/test_quantile.hip.cc b/tests/cpp/common/test_quantile.hip similarity index 100% rename from tests/cpp/common/test_quantile.hip.cc rename to tests/cpp/common/test_quantile.hip diff --git a/tests/cpp/common/test_span.hip.cc b/tests/cpp/common/test_span.hip similarity index 100% rename from tests/cpp/common/test_span.hip.cc rename to tests/cpp/common/test_span.hip diff --git a/tests/cpp/common/test_stats.hip.cc b/tests/cpp/common/test_stats.hip similarity index 100% rename from tests/cpp/common/test_stats.hip.cc rename to tests/cpp/common/test_stats.hip diff --git a/tests/cpp/common/test_threading_utils.hip.cc b/tests/cpp/common/test_threading_utils.hip similarity index 100% rename from tests/cpp/common/test_threading_utils.hip.cc rename to tests/cpp/common/test_threading_utils.hip diff --git a/tests/cpp/data/test_array_interface.hip.cc b/tests/cpp/data/test_array_interface.hip similarity index 100% rename from tests/cpp/data/test_array_interface.hip.cc rename to tests/cpp/data/test_array_interface.hip diff --git a/tests/cpp/data/test_device_adapter.hip.cc b/tests/cpp/data/test_device_adapter.hip similarity index 100% rename from tests/cpp/data/test_device_adapter.hip.cc rename to tests/cpp/data/test_device_adapter.hip diff --git a/tests/cpp/data/test_ellpack_page.hip.cc b/tests/cpp/data/test_ellpack_page.hip similarity index 100% rename from tests/cpp/data/test_ellpack_page.hip.cc rename to tests/cpp/data/test_ellpack_page.hip diff --git a/tests/cpp/data/test_ellpack_page_raw_format.hip.cc b/tests/cpp/data/test_ellpack_page_raw_format.hip similarity index 100% rename from tests/cpp/data/test_ellpack_page_raw_format.hip.cc rename to tests/cpp/data/test_ellpack_page_raw_format.hip diff --git a/tests/cpp/data/test_iterative_dmatrix.hip.cc b/tests/cpp/data/test_iterative_dmatrix.hip similarity index 100% rename from tests/cpp/data/test_iterative_dmatrix.hip.cc rename to tests/cpp/data/test_iterative_dmatrix.hip diff --git a/tests/cpp/data/test_metainfo.hip.cc b/tests/cpp/data/test_metainfo.hip similarity index 100% rename from tests/cpp/data/test_metainfo.hip.cc rename to tests/cpp/data/test_metainfo.hip diff --git a/tests/cpp/data/test_proxy_dmatrix.hip.cc b/tests/cpp/data/test_proxy_dmatrix.hip similarity index 100% rename from tests/cpp/data/test_proxy_dmatrix.hip.cc rename to tests/cpp/data/test_proxy_dmatrix.hip diff --git a/tests/cpp/data/test_simple_dmatrix.hip.cc b/tests/cpp/data/test_simple_dmatrix.hip similarity index 100% rename from tests/cpp/data/test_simple_dmatrix.hip.cc rename to tests/cpp/data/test_simple_dmatrix.hip diff --git a/tests/cpp/data/test_sparse_page_dmatrix.hip.cc b/tests/cpp/data/test_sparse_page_dmatrix.hip similarity index 100% rename from tests/cpp/data/test_sparse_page_dmatrix.hip.cc rename to tests/cpp/data/test_sparse_page_dmatrix.hip diff --git a/tests/cpp/helpers.hip.cc b/tests/cpp/helpers.hip similarity index 100% rename from tests/cpp/helpers.hip.cc rename to tests/cpp/helpers.hip diff --git a/tests/cpp/linear/test_linear.hip.cc b/tests/cpp/linear/test_linear.hip similarity index 100% rename from tests/cpp/linear/test_linear.hip.cc rename to tests/cpp/linear/test_linear.hip diff --git a/tests/cpp/metric/test_auc.hip.cc b/tests/cpp/metric/test_auc.hip similarity index 100% rename from tests/cpp/metric/test_auc.hip.cc rename to tests/cpp/metric/test_auc.hip diff --git a/tests/cpp/metric/test_elementwise_metric.hip.cc b/tests/cpp/metric/test_elementwise_metric.hip similarity index 100% rename from tests/cpp/metric/test_elementwise_metric.hip.cc rename to tests/cpp/metric/test_elementwise_metric.hip diff --git a/tests/cpp/metric/test_multiclass_metric.hip.cc b/tests/cpp/metric/test_multiclass_metric.hip similarity index 100% rename from tests/cpp/metric/test_multiclass_metric.hip.cc rename to tests/cpp/metric/test_multiclass_metric.hip diff --git a/tests/cpp/metric/test_rank_metric.hip.cc b/tests/cpp/metric/test_rank_metric.hip similarity index 100% rename from tests/cpp/metric/test_rank_metric.hip.cc rename to tests/cpp/metric/test_rank_metric.hip diff --git a/tests/cpp/metric/test_survival_metric.hip.cc b/tests/cpp/metric/test_survival_metric.hip similarity index 100% rename from tests/cpp/metric/test_survival_metric.hip.cc rename to tests/cpp/metric/test_survival_metric.hip diff --git a/tests/cpp/objective/test_aft_obj.hip.cc b/tests/cpp/objective/test_aft_obj.hip similarity index 100% rename from tests/cpp/objective/test_aft_obj.hip.cc rename to tests/cpp/objective/test_aft_obj.hip diff --git a/tests/cpp/objective/test_hinge.hip.cc b/tests/cpp/objective/test_hinge.hip similarity index 100% rename from tests/cpp/objective/test_hinge.hip.cc rename to tests/cpp/objective/test_hinge.hip diff --git a/tests/cpp/objective/test_multiclass_obj_gpu.hip.cc b/tests/cpp/objective/test_multiclass_obj_gpu.hip similarity index 100% rename from tests/cpp/objective/test_multiclass_obj_gpu.hip.cc rename to tests/cpp/objective/test_multiclass_obj_gpu.hip diff --git a/tests/cpp/objective/test_ranking_obj_gpu.hip.cc b/tests/cpp/objective/test_ranking_obj_gpu.hip similarity index 100% rename from tests/cpp/objective/test_ranking_obj_gpu.hip.cc rename to tests/cpp/objective/test_ranking_obj_gpu.hip diff --git a/tests/cpp/objective/test_regression_obj_gpu.hip.cc b/tests/cpp/objective/test_regression_obj_gpu.hip similarity index 100% rename from tests/cpp/objective/test_regression_obj_gpu.hip.cc rename to tests/cpp/objective/test_regression_obj_gpu.hip diff --git a/tests/cpp/plugin/test_federated_adapter.hip.cc b/tests/cpp/plugin/test_federated_adapter.hip similarity index 100% rename from tests/cpp/plugin/test_federated_adapter.hip.cc rename to tests/cpp/plugin/test_federated_adapter.hip diff --git a/tests/cpp/predictor/test_gpu_predictor.hip.cc b/tests/cpp/predictor/test_gpu_predictor.hip similarity index 100% rename from tests/cpp/predictor/test_gpu_predictor.hip.cc rename to tests/cpp/predictor/test_gpu_predictor.hip diff --git a/tests/cpp/tree/gpu_hist/test_driver.hip.cc b/tests/cpp/tree/gpu_hist/test_driver.hip similarity index 100% rename from tests/cpp/tree/gpu_hist/test_driver.hip.cc rename to tests/cpp/tree/gpu_hist/test_driver.hip diff --git a/tests/cpp/tree/gpu_hist/test_evaluate_splits.hip.cc b/tests/cpp/tree/gpu_hist/test_evaluate_splits.hip similarity index 100% rename from tests/cpp/tree/gpu_hist/test_evaluate_splits.hip.cc rename to tests/cpp/tree/gpu_hist/test_evaluate_splits.hip diff --git a/tests/cpp/tree/gpu_hist/test_gradient_based_sampler.hip.cc b/tests/cpp/tree/gpu_hist/test_gradient_based_sampler.hip similarity index 100% rename from tests/cpp/tree/gpu_hist/test_gradient_based_sampler.hip.cc rename to tests/cpp/tree/gpu_hist/test_gradient_based_sampler.hip diff --git a/tests/cpp/tree/gpu_hist/test_histogram.hip.cc b/tests/cpp/tree/gpu_hist/test_histogram.hip similarity index 100% rename from tests/cpp/tree/gpu_hist/test_histogram.hip.cc rename to tests/cpp/tree/gpu_hist/test_histogram.hip diff --git a/tests/cpp/tree/gpu_hist/test_row_partitioner.hip.cc b/tests/cpp/tree/gpu_hist/test_row_partitioner.hip similarity index 100% rename from tests/cpp/tree/gpu_hist/test_row_partitioner.hip.cc rename to tests/cpp/tree/gpu_hist/test_row_partitioner.hip diff --git a/tests/cpp/tree/test_constraints.hip.cc b/tests/cpp/tree/test_constraints.hip similarity index 100% rename from tests/cpp/tree/test_constraints.hip.cc rename to tests/cpp/tree/test_constraints.hip diff --git a/tests/cpp/tree/test_gpu_hist.hip.cc b/tests/cpp/tree/test_gpu_hist.hip similarity index 100% rename from tests/cpp/tree/test_gpu_hist.hip.cc rename to tests/cpp/tree/test_gpu_hist.hip