@@ -255,15 +255,16 @@ ucp_perf_cuda_put_multi_bw_kernel(ucx_perf_cuda_context &ctx,
255255 while (request_mgr.get_pending_count () >= ctx.max_outstanding ) {
256256 status = request_mgr.progress <level>(1 );
257257 if (UCS_STATUS_IS_ERR (status)) {
258- ucs_device_error (" progress failed: %d" , status);
258+ ucs_device_log (ERROR, &ctx.log_config , " progress failed: %d" ,
259+ status);
259260 goto out;
260261 }
261262 }
262263
263264 ucp_device_request_t &req = request_mgr.get_request ();
264265 status = ucp_perf_cuda_send_nbx<level, cmd>(params, idx, req);
265266 if (status != UCS_OK) {
266- ucs_device_error ( " send failed: %d" , status);
267+ ucs_device_log (ERROR, &ctx. log_config , " send failed: %d" , status);
267268 goto out;
268269 }
269270
@@ -274,7 +275,8 @@ ucp_perf_cuda_put_multi_bw_kernel(ucx_perf_cuda_context &ctx,
274275 while (request_mgr.get_pending_count () > 0 ) {
275276 status = request_mgr.progress <level>(max_iters);
276277 if (UCS_STATUS_IS_ERR (status)) {
277- ucs_device_error (" final progress failed: %d" , status);
278+ ucs_device_log (ERROR, &ctx.log_config , " final progress failed: %d" ,
279+ status);
278280 goto out;
279281 }
280282 }
@@ -300,15 +302,17 @@ ucp_perf_cuda_put_multi_latency_kernel(ucx_perf_cuda_context &ctx,
300302 if (is_sender) {
301303 status = ucp_perf_cuda_send_sync<level, cmd>(params, idx, req);
302304 if (status != UCS_OK) {
303- ucs_device_error (" sender send failed: %d" , status);
305+ ucs_device_log (ERROR, &ctx.log_config , " sender send failed: %d" ,
306+ status);
304307 break ;
305308 }
306309 ucx_perf_cuda_wait_sn (params.counter_recv , idx + 1 );
307310 } else {
308311 ucx_perf_cuda_wait_sn (params.counter_recv , idx + 1 );
309312 status = ucp_perf_cuda_send_sync<level, cmd>(params, idx, req);
310313 if (status != UCS_OK) {
311- ucs_device_error (" receiver send failed: %d" , status);
314+ ucs_device_log (ERROR, &ctx.log_config ,
315+ " receiver send failed: %d" , status);
312316 break ;
313317 }
314318 }
0 commit comments