@@ -467,9 +467,9 @@ static NRT_MemInfo *NRT_MemInfo_new_from_usmndarray(PyObject *ndarrobj,
467
467
mi -> size = nitems * itemsize ;
468
468
mi -> external_allocator = ext_alloca ;
469
469
470
- DPEXRT_DEBUG (drt_debug_print (
471
- "DPEXRT-DEBUG: NRT_MemInfo_init mi=%p external_allocator=%p\n", mi ,
472
- ext_alloca ));
470
+ DPEXRT_DEBUG (drt_debug_print ("DPEXRT-DEBUG: NRT_MemInfo_init mi=%p "
471
+ " external_allocator=%p at %s, line %d \n" ,
472
+ mi , ext_alloca , __FILE__ , __LINE__ ));
473
473
474
474
return mi ;
475
475
@@ -797,14 +797,15 @@ static int DPEXRT_sycl_usm_ndarray_from_python(PyObject *obj,
797
797
Py_IncRef (obj );
798
798
799
799
DPEXRT_DEBUG (drt_debug_print (
800
- "DPEXRT-DEBUG: In DPEXRT_sycl_usm_ndarray_from_python.\n" ));
800
+ "DPEXRT-DEBUG: In DPEXRT_sycl_usm_ndarray_from_python at %s, line %d\n" ,
801
+ __FILE__ , __LINE__ ));
801
802
802
803
// Check if the PyObject obj has an _array_obj attribute that is of
803
804
// dpctl.tensor.usm_ndarray type.
804
805
if (!(arrayobj = PyUSMNdArray_ARRAYOBJ (obj ))) {
805
806
DPEXRT_DEBUG (drt_debug_print (
806
- "DPEXRT-ERROR: PyUSMNdArray_ARRAYOBJ check failed % d\n" , __FILE__ ,
807
- __LINE__ ));
807
+ "DPEXRT-ERROR: PyUSMNdArray_ARRAYOBJ check failed at %s, line % d\n" ,
808
+ __FILE__ , __LINE__ ));
808
809
goto error ;
809
810
}
810
811
@@ -874,6 +875,11 @@ static int DPEXRT_sycl_usm_ndarray_from_python(PyObject *obj,
874
875
}
875
876
}
876
877
878
+ DPEXRT_DEBUG (
879
+ drt_debug_print ("DPEXRT-DEBUG: Done with unboxing call to "
880
+ "DPEXRT_sycl_usm_ndarray_from_python at %s, line %d\n" ,
881
+ __FILE__ , __LINE__ ));
882
+
877
883
return 0 ;
878
884
879
885
error :
0 commit comments