From a44a1ae2696f1a13e28b9ef200334c7af1df4241 Mon Sep 17 00:00:00 2001 From: jnke2016 Date: Fri, 17 Nov 2023 14:33:15 -0800 Subject: [PATCH] remove debug print --- python/pylibcugraph/pylibcugraph/graphs.pxd | 2 +- python/pylibcugraph/pylibcugraph/graphs.pyx | 38 ++------------------- 2 files changed, 3 insertions(+), 37 deletions(-) diff --git a/python/pylibcugraph/pylibcugraph/graphs.pxd b/python/pylibcugraph/pylibcugraph/graphs.pxd index 4c54005e0c4..dac69e0ad04 100644 --- a/python/pylibcugraph/pylibcugraph/graphs.pxd +++ b/python/pylibcugraph/pylibcugraph/graphs.pxd @@ -33,5 +33,5 @@ cdef class SGGraph(_GPUGraph): pass cdef class MGGraph(_GPUGraph): - pass + pass diff --git a/python/pylibcugraph/pylibcugraph/graphs.pyx b/python/pylibcugraph/pylibcugraph/graphs.pyx index 571cf2f5767..799fc1f5e93 100644 --- a/python/pylibcugraph/pylibcugraph/graphs.pyx +++ b/python/pylibcugraph/pylibcugraph/graphs.pyx @@ -150,8 +150,7 @@ cdef class SGGraph(_GPUGraph): input_array_format="COO", drop_self_loops=False, drop_multi_edges=False): - - print("entering", flush=True) + # FIXME: add tests for these if not(isinstance(store_transposed, (int, bool))): raise TypeError("expected int or bool for store_transposed, got " @@ -204,7 +203,6 @@ cdef class SGGraph(_GPUGraph): ) if input_array_format == "COO": - print("calling SG graph create", flush=True) error_code = cugraph_graph_create_sg( resource_handle.c_resource_handle_ptr, &(graph_properties.c_graph_properties), @@ -223,7 +221,6 @@ cdef class SGGraph(_GPUGraph): &error_ptr) assert_success(error_code, error_ptr, "cugraph_graph_create_sg()") - print("Done calling SG graph create", flush=True) elif input_array_format == "CSR": error_code = cugraph_sg_graph_create_from_csr( @@ -342,18 +339,11 @@ cdef class MGGraph(_GPUGraph): drop_self_loops=False, drop_multi_edges=False): - print("entering mg", flush=True) # FIXME: add tests for these if not(isinstance(store_transposed, (int, bool))): raise TypeError("expected int or bool for store_transposed, got " f"{type(store_transposed)}") - """ - if not(isinstance(num_edges, (int))): - raise TypeError("expected int for num_edges, got " - f"{type(num_edges)}") - if num_edges < 0: - raise TypeError("num_edges must be > 0") - """ + if not(isinstance(do_expensive_check, (int, bool))): raise TypeError("expected int or bool for do_expensive_check, got " f"{type(do_expensive_check)}") @@ -458,8 +448,6 @@ cdef class MGGraph(_GPUGraph): if edge_type_array: self.edge_type_view_ptr_ptr -= num_arrays - #num_arrays = 1 - print("calling MG graph create", flush=True) error_code = cugraph_graph_create_mg( resource_handle.c_resource_handle_ptr, &(graph_properties.c_graph_properties), @@ -477,7 +465,6 @@ cdef class MGGraph(_GPUGraph): &(self.c_graph_ptr), &error_ptr) - print("Done calling MG graph create", flush=True) assert_success(error_code, error_ptr, "cugraph_mg_graph_create()") @@ -493,24 +480,3 @@ cdef class MGGraph(_GPUGraph): def __dealloc__(self): if self.c_graph_ptr is not NULL: cugraph_mg_graph_free(self.c_graph_ptr) - - - - -""" - cdef cugraph_error_code_t \ - cugraph_graph_create_sg_from_csr( - const cugraph_resource_handle_t* handle, - const cugraph_graph_properties_t* properties, - const cugraph_type_erased_device_array_view_t* offsets, - const cugraph_type_erased_device_array_view_t* indices, - const cugraph_type_erased_device_array_view_t* weights, - const cugraph_type_erased_device_array_view_t* edge_ids, - const cugraph_type_erased_device_array_view_t* edge_type_ids, - bool_t store_transposed, - bool_t renumber, - bool_t check, - cugraph_graph_t** graph, - cugraph_error_t** error - ) -""" \ No newline at end of file