diff --git a/src/tree/gpu_hist/evaluate_splits.cu b/src/tree/gpu_hist/evaluate_splits.cu index acce2c4f8..98811741a 100644 --- a/src/tree/gpu_hist/evaluate_splits.cu +++ b/src/tree/gpu_hist/evaluate_splits.cu @@ -423,9 +423,9 @@ void GPUHistEvaluator::CopyToHost(const std::vector &nidx) { for (auto idx : nidx) { copy_stream_.View().Wait(event); - dh::safe_cuda(cudaMemcpyAsync( + dh::safe_cuda(hipMemcpyAsync( h_cats.GetNodeCatStorage(idx).data(), d_cats.GetNodeCatStorage(idx).data(), - d_cats.GetNodeCatStorage(idx).size_bytes(), cudaMemcpyDeviceToHost, copy_stream_.View())); + d_cats.GetNodeCatStorage(idx).size_bytes(), hipMemcpyDeviceToHost, copy_stream_.View())); } }