test
This commit is contained in:
parent
59cc283242
commit
cbaf5511ac
@ -423,9 +423,9 @@ void GPUHistEvaluator::CopyToHost(const std::vector<bst_node_t> &nidx) {
|
|||||||
for (auto idx : nidx) {
|
for (auto idx : nidx) {
|
||||||
copy_stream_.View().Wait(event);
|
copy_stream_.View().Wait(event);
|
||||||
|
|
||||||
dh::safe_cuda(cudaMemcpyAsync(
|
dh::safe_cuda(hipMemcpyAsync(
|
||||||
h_cats.GetNodeCatStorage(idx).data(), d_cats.GetNodeCatStorage(idx).data(),
|
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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user