| 13 | #include "GB.h" |
| 14 | |
| 15 | GrB_Info GrB_init // start up GraphBLAS |
| 16 | ( |
| 17 | GrB_Mode mode // blocking or non-blocking mode |
| 18 | ) |
| 19 | { |
| 20 | |
| 21 | //-------------------------------------------------------------------------- |
| 22 | // check inputs |
| 23 | //-------------------------------------------------------------------------- |
| 24 | |
| 25 | GB_CONTEXT ("GrB_init (mode)") ; |
| 26 | |
| 27 | //-------------------------------------------------------------------------- |
| 28 | // initialize GraphBLAS |
| 29 | //-------------------------------------------------------------------------- |
| 30 | |
| 31 | // default: use the ANSI C11 malloc memory manager, which is thread-safe |
| 32 | |
| 33 | return (GB_init |
| 34 | (mode, // blocking or non-blocking mode |
| 35 | malloc, realloc, free, // ANSI C memory management functions |
| 36 | Context)) ; |
| 37 | } |
| 38 | |