FasTensor  1.0.0
Transform Supercomputing for AI
ft_merge.h
Go to the documentation of this file.
1 
2 
3 /*
4 ****************************
5 
6 FasTensor (FT) Copyright (c) 2021, The Regents of the University of
7 California, through Lawrence Berkeley National Laboratory (subject to
8 receipt of any required approvals from the U.S. Dept. of Energy).
9 All rights reserved.
10 
11 If you have questions about your rights to use or distribute this software,
12 please contact Berkeley Lab's Intellectual Property Office at
14 
15 NOTICE. This Software was developed under funding from the U.S. Department
16 of Energy and the U.S. Government consequently retains certain rights. As
17 such, the U.S. Government has been granted for itself and others acting on
18 its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the
19 Software to reproduce, distribute copies to the public, prepare derivative
20 works, and perform publicly and display publicly, and to permit others to do so.
21 
22 
23 ****************************
24 
25 
26 *** License Agreement ***
27 
28 FasTensor (FT) Copyright (c) 2021, The Regents of the University of
29 California, through Lawrence Berkeley National Laboratory (subject to
30 receipt of any required approvals from the U.S. Dept. of Energy).
31 All rights reserved.
32 
33 Redistribution and use in source and binary forms, with or without
34 modification, are permitted provided that the following conditions are met:
35 
36 (1) Redistributions of source code must retain the above copyright notice,
37 this list of conditions and the following disclaimer.
38 
39 (2) Redistributions in binary form must reproduce the above copyright
40 notice, this list of conditions and the following disclaimer in the
41 documentation and/or other materials provided with the distribution.
42 
43 (3) Neither the name of the University of California, Lawrence Berkeley
44 National Laboratory, U.S. Dept. of Energy nor the names of its contributors
45 may be used to endorse or promote products derived from this software
46 without specific prior written permission.
47 
48 
49 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
50 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
51 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
52 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
53 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
54 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
55 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
56 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
57 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
58 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
59 POSSIBILITY OF SUCH DAMAGE.
60 
61 You are under no obligation whatsoever to provide any bug fixes, patches,
62 or upgrades to the features, functionality or performance of the source
63 code ("Enhancements") to anyone; however, if you choose to make your
64 Enhancements available either publicly, or directly to Lawrence Berkeley
65 National Laboratory, without imposing a separate written license agreement
66 for such Enhancements, then you hereby grant the following license: a
67 non-exclusive, royalty-free perpetual license to install, use, modify,
68 prepare derivative works, incorporate into other computer software,
69 distribute, and sublicense such enhancements or derivative works thereof,
70 in binary and source code form.
71 */
72 
82 #ifndef AU_MERGE_H
83 
84 #define AU_MERGE_H
85 
86 //AuMergeType follows the defination within MPI
87 //See below for more information
88 typedef int AU_Op;
89 
90 #define AU_MAX (AU_Op)(0x58000001)
91 #define AU_MIN (AU_Op)(0x58000002)
92 #define AU_SUM (AU_Op)(0x58000003)
93 #define AU_PROD (AU_Op)(0x58000004)
94 #define AU_LAND (AU_Op)(0x58000005)
95 #define AU_BAND (AU_Op)(0x58000006)
96 #define AU_LOR (AU_Op)(0x58000007)
97 #define AU_BOR (AU_Op)(0x58000008)
98 #define AU_LXOR (AU_Op)(0x58000009)
99 #define AU_BXOR (AU_Op)(0x5800000a)
100 #define AU_MINLOC (AU_Op)(0x5800000b)
101 #define AU_MAXLOC (AU_Op)(0x5800000c)
102 #define AU_REPLACE (AU_Op)(0x5800000d)
103 #define AU_NO_OP (AU_Op)(0x5800000e)
104 
105 /*
106 https://github.com/pmodels/mpich/blob/master/src/include/mpi.h.in
107 typedef int MPI_Op;
108 
109 #define MPI_MAX (MPI_Op)(0x58000001)
110 #define MPI_MIN (MPI_Op)(0x58000002)
111 #define MPI_SUM (MPI_Op)(0x58000003)
112 #define MPI_PROD (MPI_Op)(0x58000004)
113 #define MPI_LAND (MPI_Op)(0x58000005)
114 #define MPI_BAND (MPI_Op)(0x58000006)
115 #define MPI_LOR (MPI_Op)(0x58000007)
116 #define MPI_BOR (MPI_Op)(0x58000008)
117 #define MPI_LXOR (MPI_Op)(0x58000009)
118 #define MPI_BXOR (MPI_Op)(0x5800000a)
119 #define MPI_MINLOC (MPI_Op)(0x5800000b)
120 #define MPI_MAXLOC (MPI_Op)(0x5800000c)
121 #define MPI_REPLACE (MPI_Op)(0x5800000d)
122 #define MPI_NO_OP (MPI_Op)(0x5800000e)
123 */
124 
125 #endif
int AU_Op
Definition: ft_merge.h:88