more logging
This commit is contained in:
parent
db66fad9e9
commit
e2e6b6e71f
@ -991,6 +991,11 @@ auto Reduce(Policy policy, InputIt first, InputIt second, Init init, Func reduce
|
|||||||
|
|
||||||
std::cerr << "Processing batch: offset=" << offset << ", batch_size=" << batch_size << std::endl;
|
std::cerr << "Processing batch: offset=" << offset << ", batch_size=" << batch_size << std::endl;
|
||||||
|
|
||||||
|
hipError_t err = hipStreamQuery(stream);
|
||||||
|
if (err != hipSuccess && err != hipErrorNotReady) {
|
||||||
|
std::cerr << "Invalid stream: " << hipGetErrorString(err) << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
auto ret = thrust::reduce(policy, begin_it, end_it, init, reduce_op);
|
auto ret = thrust::reduce(policy, begin_it, end_it, init, reduce_op);
|
||||||
aggregate = reduce_op(aggregate, ret);
|
aggregate = reduce_op(aggregate, ret);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user