Module Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore Num ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad NameLoad attr keyword Str keyword ListLoad TupleLoad NameLoad NameLoad NameLoad NameLoad TupleLoad Num NameLoad NameLoad NameLoad TupleLoad BinOpDiv NameLoad Num NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad Num Str decorator_list Call AttributeLoad NameLoad attr keyword Str FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad Num Str decorator_list Call AttributeLoad NameLoad attr keyword Str FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad BinOpAdd Call AttributeLoad NameLoad attr NameLoad Num keyword AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad BinOpAdd Call AttributeLoad NameLoad attr BinOpMult Num NameLoad Num keyword AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Str Return Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call AttributeLoad NameLoad attr keyword Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Return Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call AttributeLoad NameLoad attr keyword Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Return Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call AttributeLoad NameLoad attr keyword Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Return Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call AttributeLoad NameLoad attr keyword Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Return Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call AttributeLoad NameLoad attr keyword Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Return Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call AttributeLoad NameLoad attr keyword Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Return Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call AttributeLoad NameLoad attr keyword Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Return Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call AttributeLoad NameLoad attr keyword Str FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad BinOpMult ListLoad Num NameLoad AttributeLoad NameLoad attr Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad BinOpMult ListLoad Num NameLoad AttributeLoad NameLoad attr Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad BinOpMult ListLoad Num NameLoad AttributeLoad NameLoad attr Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad BinOpMult ListLoad Num NameLoad AttributeLoad NameLoad attr Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Num Num AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Num Num AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Num Num AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Num Num AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Num Num AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Num Num AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Num Num AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert Call NameLoad CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num keyword AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Slice Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert Call NameLoad CompareEq AttributeLoad NameLoad attr Num Assert Call NameLoad CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num TupleLoad Num Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert Call NameLoad CompareEq AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body AugAssignAdd SubscriptStore AttributeLoad NameLoad attr Slice Num Assign NameStore BinOpSub Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore BinOpSub Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num TupleLoad Num Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num attr Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore BinOpAdd Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num attr Num Assign NameStore BinOpAdd Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num attr Num Assign NameStore Call AttributeLoad NameLoad attr Num TupleLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num attr Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body AugAssignAdd SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Index Num Num AugAssignAdd SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Index Num Num Assign NameStore BinOpSub Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num attr Num Assign NameStore BinOpSub Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num attr Num Assign NameStore Call AttributeLoad NameLoad attr Num TupleLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore BinOpSub Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num attr Num Assign NameStore BinOpSub Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num attr Num Assign NameStore Call AttributeLoad NameLoad attr Num TupleLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num attr Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore BinOpAdd Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num attr Num Assign NameStore BinOpAdd Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num attr Num Assign NameStore Call AttributeLoad NameLoad attr Num TupleLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr BinOpMult Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num ListLoad Num AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Num ListLoad Num AttributeLoad NameLoad attr Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A pytest N/A numpy numpy.testing assert_allclose pyop2 op2 N/A nelems 4096 TestGlobalReductions N/A N/A N/A 
    Global reduction argument tests
     set N/A N/A cls request N/A N/A N/A N/A N/A op2 Set N/A request param set N/A N/A N/A pytest fixture scope module params N/A N/A nelems nelems nelems nelems N/A 0 nelems nelems nelems N/A N/A nelems 2 nelems nelems nelems dset N/A N/A cls set N/A N/A N/A N/A N/A op2 DataSet set 1 set N/A N/A N/A pytest fixture scope module dset2 N/A N/A cls set N/A N/A N/A N/A N/A op2 DataSet set 2 set2 N/A N/A N/A pytest fixture scope module d1 N/A N/A cls dset N/A N/A N/A N/A N/A op2 Dat dset N/A N/A N/A numpy arange nelems 1 dtype N/A numpy uint32 N/A N/A pytest fixture d2 N/A N/A cls dset2 N/A N/A N/A N/A N/A op2 Dat dset2 N/A N/A N/A numpy arange N/A 2 nelems 1 dtype N/A numpy uint32 N/A N/A pytest fixture k1_write_to_dat N/A N/A cls N/A N/A N/A k 
        void k(unsigned int *x, unsigned int *g) { *x = *g; }
         N/A N/A N/A op2 Kernel k k N/A N/A N/A pytest fixture scope module k1_inc_to_global N/A N/A cls N/A N/A N/A k 
        void k(unsigned int *x, unsigned int *g) { *g += *x; }
         N/A N/A N/A op2 Kernel k k N/A N/A N/A pytest fixture scope module k1_min_to_global N/A N/A cls N/A N/A N/A k 
        void k(unsigned int *x, unsigned int *g) { if (*x < *g) *g = *x; }
         N/A N/A N/A op2 Kernel k k N/A N/A N/A pytest fixture scope module k2_min_to_global N/A N/A cls N/A N/A N/A k 
        void k(unsigned int *x, unsigned int *g) {
        if (x[0] < g[0]) g[0] = x[0];
        if (x[1] < g[1]) g[1] = x[1];
        }
         N/A N/A N/A op2 Kernel k k N/A N/A N/A pytest fixture scope module k1_max_to_global N/A N/A cls N/A N/A N/A k 
        void k(unsigned int *x, unsigned int *g) {
        if (*x > *g) *g = *x;
        }
         N/A N/A N/A op2 Kernel k k N/A N/A N/A pytest fixture scope module k2_max_to_global N/A N/A cls N/A N/A N/A k 
        void k(unsigned int *x, unsigned int *g) {
        if (x[0] > g[0]) g[0] = x[0];
        if (x[1] > g[1]) g[1] = x[1];
        }
         N/A N/A N/A op2 Kernel k k N/A N/A N/A pytest fixture scope module k2_write_to_dat N/A N/A cls request N/A N/A N/A k 
        void k(unsigned int *x, unsigned int *g) { *x = g[0] + g[1]; }
         N/A N/A N/A op2 Kernel k k N/A N/A N/A pytest fixture scope module k2_inc_to_global N/A N/A cls N/A N/A N/A k 
        void k(unsigned int *x, unsigned int *g) { g[0] += x[0]; g[1] += x[1]; }
         N/A N/A N/A op2 Kernel k k N/A N/A N/A pytest fixture scope module duint32 N/A N/A cls dset N/A N/A N/A N/A N/A op2 Dat dset N/A N/A 12 nelems N/A numpy uint32 duint32 N/A N/A pytest fixture dint32 N/A N/A cls dset N/A N/A N/A N/A N/A op2 Dat dset N/A N/A -12 nelems N/A numpy int32 dint32 N/A N/A pytest fixture dfloat32 N/A N/A cls dset N/A N/A N/A N/A N/A op2 Dat dset N/A N/A -12.0 nelems N/A numpy float32 dfloat32 N/A N/A pytest fixture dfloat64 N/A N/A cls dset N/A N/A N/A N/A N/A op2 Dat dset N/A N/A -12.0 nelems N/A numpy float64 dfloat64 N/A N/A pytest fixture test_direct_min_uint32 N/A N/A self backend set duint32 N/A N/A N/A kernel_min 
void kernel_min(unsigned int* x, unsigned int* g)
{
  if ( *x < *g ) *g = *x;
}
 N/A g N/A N/A op2 Global 1 8 N/A numpy uint32 g N/A N/A N/A op2 par_loop N/A N/A op2 Kernel kernel_min kernel_min set N/A duint32 N/A op2 READ N/A g N/A op2 MIN N/A N/A N/A N/A g data N/A 0 8 N/A test_direct_min_int32 N/A N/A self backend set dint32 N/A N/A N/A kernel_min 
void kernel_min(int* x, int* g)
{
  if ( *x < *g ) *g = *x;
}
 N/A g N/A N/A op2 Global 1 8 N/A numpy int32 g N/A N/A N/A op2 par_loop N/A N/A op2 Kernel kernel_min kernel_min set N/A dint32 N/A op2 READ N/A g N/A op2 MIN N/A N/A N/A N/A g data N/A 0 -12 N/A test_direct_max_int32 N/A N/A self backend set dint32 N/A N/A N/A kernel_max 
void kernel_max(int* x, int* g)
{
  if ( *x > *g ) *g = *x;
}
 N/A g N/A N/A op2 Global 1 -42 N/A numpy int32 g N/A N/A N/A op2 par_loop N/A N/A op2 Kernel kernel_max kernel_max set N/A dint32 N/A op2 READ N/A g N/A op2 MAX N/A N/A N/A N/A g data N/A 0 -12 N/A test_direct_min_float N/A N/A self backend set dfloat32 N/A N/A N/A kernel_min 
void kernel_min(float* x, float* g)
{
  if ( *x < *g ) *g = *x;
}
 N/A g N/A N/A op2 Global 1 -0.8 N/A numpy float32 g N/A N/A N/A op2 par_loop N/A N/A op2 Kernel kernel_min kernel_min set N/A dfloat32 N/A op2 READ N/A g N/A op2 MIN N/A N/A assert_allclose N/A N/A g data N/A 0 -12.0 N/A test_direct_max_float N/A N/A self backend set dfloat32 N/A N/A N/A kernel_max 
void kernel_max(float* x, float* g)
{
  if ( *x > *g ) *g = *x;
}
 N/A g N/A N/A op2 Global 1 -42.8 N/A numpy float32 g N/A N/A N/A op2 par_loop N/A N/A op2 Kernel kernel_max kernel_max set N/A dfloat32 N/A op2 READ N/A g N/A op2 MAX N/A N/A assert_allclose N/A N/A g data N/A 0 -12.0 N/A test_direct_min_double N/A N/A self backend set dfloat64 N/A N/A N/A kernel_min 
void kernel_min(double* x, double* g)
{
  if ( *x < *g ) *g = *x;
}
 N/A g N/A N/A op2 Global 1 -0.8 N/A numpy float64 g N/A N/A N/A op2 par_loop N/A N/A op2 Kernel kernel_min kernel_min set N/A dfloat64 N/A op2 READ N/A g N/A op2 MIN N/A N/A assert_allclose N/A N/A g data N/A 0 -12.0 N/A test_direct_max_double N/A N/A self backend set dfloat64 N/A N/A N/A kernel_max 
void kernel_max(double* x, double* g)
{
  if ( *x > *g ) *g = *x;
}
 N/A g N/A N/A op2 Global 1 -42.8 N/A numpy float64 g N/A N/A N/A op2 par_loop N/A N/A op2 Kernel kernel_max kernel_max set N/A dfloat64 N/A op2 READ N/A g N/A op2 MAX N/A N/A assert_allclose N/A N/A g data N/A 0 -12.0 N/A test_1d_read N/A N/A self backend k1_write_to_dat set d1 N/A N/A N/A g N/A N/A op2 Global 1 1 dtype N/A numpy uint32 N/A N/A N/A op2 par_loop k1_write_to_dat set N/A d1 N/A op2 WRITE N/A g N/A op2 READ N/A N/A all N/A N/A d1 data N/A g data N/A test_1d_read_no_init N/A N/A self backend k1_write_to_dat set d1 N/A N/A N/A g N/A N/A op2 Global 1 dtype N/A numpy uint32 N/A N/A N/A d1 data N/A 100 N/A N/A N/A op2 par_loop k1_write_to_dat set N/A d1 N/A op2 WRITE N/A g N/A op2 READ N/A N/A all N/A N/A g data 0 N/A N/A all N/A N/A d1 data 0 N/A test_2d_read N/A N/A self backend k2_write_to_dat set d1 N/A N/A N/A g N/A N/A op2 Global 2 N/A 1 2 dtype N/A numpy uint32 N/A N/A N/A op2 par_loop k2_write_to_dat set N/A d1 N/A op2 WRITE N/A g N/A op2 READ N/A N/A all N/A N/A d1 data N/A N/A N/A g data sum N/A test_1d_inc N/A N/A self backend k1_inc_to_global set d1 N/A N/A N/A g N/A N/A op2 Global 1 0 dtype N/A numpy uint32 N/A N/A N/A op2 par_loop k1_inc_to_global set N/A d1 N/A op2 READ N/A g N/A op2 INC N/A N/A N/A g data N/A N/A N/A d1 data sum N/A test_1d_inc_no_data N/A N/A self backend k1_inc_to_global set d1 N/A N/A N/A g N/A N/A op2 Global 1 dtype N/A numpy uint32 N/A N/A N/A op2 par_loop k1_inc_to_global set N/A d1 N/A op2 READ N/A g N/A op2 INC N/A N/A N/A g data N/A N/A N/A d1 data sum N/A test_1d_min_dat_is_min N/A N/A self backend k1_min_to_global set d1 N/A N/A N/A val N/A N/A N/A N/A d1 data min 1 N/A g N/A N/A op2 Global 1 val dtype N/A numpy uint32 N/A N/A N/A op2 par_loop k1_min_to_global set N/A d1 N/A op2 READ N/A g N/A op2 MIN N/A N/A N/A g data N/A N/A N/A d1 data min N/A test_1d_min_global_is_min N/A N/A self backend k1_min_to_global set d1 N/A N/A N/A N/A N/A d1 data N/A 10 N/A val N/A N/A N/A N/A d1 data min 1 N/A g N/A N/A op2 Global 1 val dtype N/A numpy uint32 N/A N/A N/A op2 par_loop k1_min_to_global set N/A d1 N/A op2 READ N/A g N/A op2 MIN N/A N/A N/A g data val N/A test_1d_max_dat_is_max N/A N/A self backend k1_max_to_global set d1 N/A N/A N/A val N/A N/A N/A N/A d1 data max 1 N/A g N/A N/A op2 Global 1 val dtype N/A numpy uint32 N/A N/A N/A op2 par_loop k1_max_to_global set N/A d1 N/A op2 READ N/A g N/A op2 MAX N/A N/A N/A g data N/A N/A N/A d1 data max N/A test_1d_max_global_is_max N/A N/A self backend k1_max_to_global set d1 N/A N/A N/A val N/A N/A N/A N/A d1 data max 1 N/A g N/A N/A op2 Global 1 val dtype N/A numpy uint32 N/A N/A N/A op2 par_loop k1_max_to_global set N/A d1 N/A op2 READ N/A g N/A op2 MAX N/A N/A N/A g data val N/A test_2d_inc N/A N/A self backend k2_inc_to_global set d2 N/A N/A N/A g N/A N/A op2 Global 2 N/A 0 0 dtype N/A numpy uint32 N/A N/A N/A op2 par_loop k2_inc_to_global set N/A d2 N/A op2 READ N/A g N/A op2 INC N/A N/A N/A N/A g data N/A 0 N/A N/A N/A N/A d2 data N/A N/A N/A 0 sum N/A N/A N/A N/A g data N/A 1 N/A N/A N/A N/A d2 data N/A N/A N/A 1 sum N/A test_2d_min_dat_is_min N/A N/A self backend k2_min_to_global set d2 N/A N/A N/A val_0 N/A N/A N/A N/A N/A d2 data N/A N/A N/A 0 min 1 N/A val_1 N/A N/A N/A N/A N/A d2 data N/A N/A N/A 1 min 1 N/A g N/A N/A op2 Global 2 N/A val_0 val_1 dtype N/A numpy uint32 N/A N/A N/A op2 par_loop k2_min_to_global set N/A d2 N/A op2 READ N/A g N/A op2 MIN N/A N/A N/A N/A g data N/A 0 N/A N/A N/A N/A d2 data N/A N/A N/A 0 min N/A N/A N/A N/A g data N/A 1 N/A N/A N/A N/A d2 data N/A N/A N/A 1 min N/A test_2d_min_global_is_min N/A N/A self backend k2_min_to_global set d2 N/A N/A N/A N/A N/A d2 data N/A N/A N/A 0 10 N/A N/A N/A d2 data N/A N/A N/A 1 10 N/A val_0 N/A N/A N/A N/A N/A d2 data N/A N/A N/A 0 min 1 N/A val_1 N/A N/A N/A N/A N/A d2 data N/A N/A N/A 1 min 1 N/A g N/A N/A op2 Global 2 N/A val_0 val_1 dtype N/A numpy uint32 N/A N/A N/A op2 par_loop k2_min_to_global set N/A d2 N/A op2 READ N/A g N/A op2 MIN N/A N/A N/A N/A g data N/A 0 val_0 N/A N/A N/A N/A g data N/A 1 val_1 N/A test_2d_max_dat_is_max N/A N/A self backend k2_max_to_global set d2 N/A N/A N/A val_0 N/A N/A N/A N/A N/A d2 data N/A N/A N/A 0 max 1 N/A val_1 N/A N/A N/A N/A N/A d2 data N/A N/A N/A 1 max 1 N/A g N/A N/A op2 Global 2 N/A val_0 val_1 dtype N/A numpy uint32 N/A N/A N/A op2 par_loop k2_max_to_global set N/A d2 N/A op2 READ N/A g N/A op2 MAX N/A N/A N/A N/A g data N/A 0 N/A N/A N/A N/A d2 data N/A N/A N/A 0 max N/A N/A N/A N/A g data N/A 1 N/A N/A N/A N/A d2 data N/A N/A N/A 1 max N/A test_2d_max_global_is_max N/A N/A self backend k2_max_to_global set d2 N/A N/A N/A max_val_0 N/A N/A N/A N/A N/A d2 data N/A N/A N/A 0 max 1 N/A max_val_1 N/A N/A N/A N/A N/A d2 data N/A N/A N/A 1 max 1 N/A g N/A N/A op2 Global 2 N/A max_val_0 max_val_1 dtype N/A numpy uint32 N/A N/A N/A op2 par_loop k2_max_to_global set N/A d2 N/A op2 READ N/A g N/A op2 MAX N/A N/A N/A N/A g data N/A 0 max_val_0 N/A N/A N/A N/A g data N/A 1 max_val_1 N/A test_1d_multi_inc_same_global N/A N/A self backend k1_inc_to_global set d1 N/A N/A N/A g N/A N/A op2 Global 1 0 dtype N/A numpy uint32 N/A N/A N/A op2 par_loop k1_inc_to_global set N/A d1 N/A op2 READ N/A g N/A op2 INC N/A N/A N/A g data N/A N/A N/A d1 data sum N/A N/A N/A op2 par_loop k1_inc_to_global set N/A d1 N/A op2 READ N/A g N/A op2 INC N/A N/A N/A g data N/A N/A N/A N/A d1 data sum 2 N/A test_1d_multi_inc_same_global_reset N/A N/A self backend k1_inc_to_global set d1 N/A N/A N/A g N/A N/A op2 Global 1 0 dtype N/A numpy uint32 N/A N/A N/A op2 par_loop k1_inc_to_global set N/A d1 N/A op2 READ N/A g N/A op2 INC N/A N/A N/A g data N/A N/A N/A d1 data sum N/A N/A g data 10 N/A N/A N/A op2 par_loop k1_inc_to_global set N/A d1 N/A op2 READ N/A g N/A op2 INC N/A N/A N/A g data N/A N/A N/A N/A d1 data sum 10 N/A test_1d_multi_inc_diff_global N/A N/A self backend k1_inc_to_global set d1 N/A N/A N/A g N/A N/A op2 Global 1 0 dtype N/A numpy uint32 N/A g2 N/A N/A op2 Global 1 10 dtype N/A numpy uint32 N/A N/A N/A op2 par_loop k1_inc_to_global set N/A d1 N/A op2 READ N/A g N/A op2 INC N/A N/A N/A g data N/A N/A N/A d1 data sum N/A N/A N/A op2 par_loop k1_inc_to_global set N/A d1 N/A op2 READ N/A g2 N/A op2 INC N/A N/A N/A g2 data N/A N/A N/A N/A d1 data sum 10 N/A test_globals_with_different_types N/A N/A self backend set N/A N/A N/A g_uint32 N/A N/A op2 Global 1 N/A 0 N/A numpy uint32 g_uint32 N/A g_double N/A N/A op2 Global 1 N/A 0.0 N/A numpy float64 g_double N/A k void k(unsigned int* i, double* d) { *i += 1; *d += 1.0f; } N/A N/A N/A op2 par_loop N/A N/A op2 Kernel k k set N/A g_uint32 N/A op2 INC N/A g_double N/A op2 INC N/A N/A assert_allclose N/A N/A g_uint32 data N/A 0 N/A N/A g_double data N/A 0 N/A N/A N/A N/A g_uint32 data N/A 0 N/A set size N/A N/A