Line data Source code
1 : //------------------------------------------------------------------------------ 2 : // LAGraph_Finalize: finish LAGraph 3 : //------------------------------------------------------------------------------ 4 : 5 : // LAGraph, (c) 2019-2022 by The LAGraph Contributors, All Rights Reserved. 6 : // SPDX-License-Identifier: BSD-2-Clause 7 : // 8 : // For additional details (including references to third party source code and 9 : // other files) see the LICENSE file or contact permission@sei.cmu.edu. See 10 : // Contributors.txt for a full list of contributors. Created, in part, with 11 : // funding and support from the U.S. Government (see Acknowledgments.txt file). 12 : // DM22-0790 13 : 14 : // Contributed by Timothy A. Davis, Texas A&M University 15 : 16 : //------------------------------------------------------------------------------ 17 : 18 : #include "LG_internal.h" 19 : 20 224 : int LAGraph_Finalize (char *msg) 21 : { 22 : 23 : //-------------------------------------------------------------------------- 24 : // check inputs 25 : //-------------------------------------------------------------------------- 26 : 27 224 : LG_CLEAR_MSG ; 28 : 29 : //-------------------------------------------------------------------------- 30 : // free global objects 31 : //-------------------------------------------------------------------------- 32 : 33 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_int8 )) ; 34 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_int16 )) ; 35 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_int32 )) ; 36 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_int64 )) ; 37 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_uint8 )) ; 38 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_uint16)) ; 39 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_uint32)) ; 40 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_uint64)) ; 41 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_fp32 )) ; 42 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_fp64 )) ; 43 : 44 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_int8 )) ; 45 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_int16 )) ; 46 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_int32 )) ; 47 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_int64 )) ; 48 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_uint8 )) ; 49 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_uint16)) ; 50 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_uint32)) ; 51 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_uint64)) ; 52 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_fp32 )) ; 53 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_fp64 )) ; 54 : 55 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_int8 )) ; 56 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_int16 )) ; 57 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_int32 )) ; 58 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_int64 )) ; 59 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_uint8 )) ; 60 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_uint16)) ; 61 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_uint32)) ; 62 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_uint64)) ; 63 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_fp32 )) ; 64 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_fp64 )) ; 65 : 66 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_bool )) ; 67 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_int8 )) ; 68 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_int16 )) ; 69 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_int32 )) ; 70 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_int64 )) ; 71 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_uint8 )) ; 72 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_uint16)) ; 73 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_uint32)) ; 74 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_uint64)) ; 75 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_fp32 )) ; 76 224 : GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_fp64 )) ; 77 : 78 : //-------------------------------------------------------------------------- 79 : // finalize GraphBLAS 80 : //-------------------------------------------------------------------------- 81 : 82 224 : GRB_TRY (GrB_finalize ( )) ; 83 224 : return (GrB_SUCCESS) ; 84 : }