1function [nthreads chunk] = nthreads_get 2%NTHREADS_GET get # of threads and chunk to use in GraphBLAS 3% 4% [nthreads chunk] = nthreads_get 5 6% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. 7% SPDX-License-Identifier: Apache-2.0 8 9global GraphBLAS_nthreads 10if (isempty (GraphBLAS_nthreads)) 11 nthreads_set (1) ; 12end 13nthreads = GraphBLAS_nthreads ; 14 15if (nargout > 1) 16 global GraphBLAS_chunk 17 if (isempty (GraphBLAS_chunk)) 18 [nthreads chunk] = nthreads_set (nthreads, 64*1024) ; 19 end 20 chunk = GraphBLAS_chunk ; 21end 22 23