COMBINATORIAL_BLAS  1.6
permutation_gen.h
Go to the documentation of this file.
1 /* Copyright (C) 2010 The Trustees of Indiana University. */
2 /* */
3 /* Use, modification and distribution is subject to the Boost Software */
4 /* License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at */
5 /* http://www.boost.org/LICENSE_1_0.txt) */
6 /* */
7 /* Authors: Jeremiah Willcock */
8 /* Andrew Lumsdaine */
9 
10 #ifndef PERMUTATION_GEN_H
11 #define PERMUTATION_GEN_H
12 
13 #include <stdint.h>
14 #include "splittable_mrg.h"
15 #include "graph_generator.h"
16 
17 #ifdef GRAPH_GENERATOR_MPI
18 #include <mpi.h>
19 #endif
20 
21 /* This version is for sequential machines and the XMT. */
22 void rand_sort_shared(mrg_state* st, int64_t n, int64_t* result /* Array of size n */);
23 
24 #ifdef GRAPH_GENERATOR_MPI
25 /* For MPI distributed memory. */
26 void rand_sort_mpi(MPI_Comm comm, mrg_state* st, int64_t n,
27  int64_t* result_size_ptr,
28  int64_t** result_ptr /* Allocated using malloc() by
29  rand_sort_mpi(), must be free()d by user */);
30 #endif
31 
32 #endif /* PERMUTATION_GEN_H */
void rand_sort_shared(mrg_state *st, int64_t n, int64_t *result)
long int64_t
Definition: compat.h:21